This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110c. See for the official list.


770. Ambiguity in late-specified return type

Section: 9.3  [dcl.decl]     Status: CD2     Submitter: Daveed Vandevoorde     Date: 9 February, 2009

[Voted into the WP at the July, 2009 meeting as part of N2927.]

It is currently unspecified whether a declaration like

    f() -> struct S { };

should be parsed as a declaration of f whose return type is a class definition (which will be ill-formed according to 9.2.9 [dcl.type] paragraph 3) or as a definition of f whose return type is an elaborated-type-specifier.

Proposed resolution (June, 2009):

See document PL22.16/09-0117 = WG21 N2927.