Title
Ambiguity in late-specified return type
Status
cd2
Section
9.3 [dcl.decl]
Submitter
Daveed Vandevoorde

Created on 2009-02-09.00:00:00 last changed 143 months ago

Messages

Date: 2009-07-15.00:00:00

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

Date: 2009-06-15.00:00:00

Proposed resolution (June, 2009):

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

Date: 2009-02-09.00:00:00

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.

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: wp -> cd2
2009-11-08 00:00:00adminsetstatus: dr -> wp
2009-08-03 00:00:00adminsetmessages: + msg2259
2009-08-03 00:00:00adminsetstatus: review -> dr
2009-06-19 00:00:00adminsetmessages: + msg2040
2009-06-19 00:00:00adminsetstatus: drafting -> review
2009-02-09 00:00:00admincreate