This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


743. Use of decltype in a nested-name-specifier

Section: _N4567_.5.1.1  [expr.prim.general]     Status: CD2     Submitter: Jaakko Järvi     Date: 12 November, 2008

N2800 comment JP 8

[Voted into WP at March, 2010 meeting as document N3049.]

The grammar for nested-name-specifier in _N4567_.5.1.1 [expr.prim.general] paragraph 7 does not allow decltype to be used in a qualified-id. This could be useful for cases like:

   auto vec = get_vec();
   decltype(vec)::value_type v = vec.first();
(See also issue 950.)

Proposed resolution (September, 2009):

See paper PL22.16/09-0181 = WG21 N2991.

Proposed resolution (February, 2010):

See paper PL22.16/10-0021 = WG21 N3031.