Created on 2011-03-12.00:00:00 last changed 130 months ago
[Moved to DR at the October, 2012 meeting.]
Proposed resolution (December, 2011):
Change 7.2.1 [basic.lval] paragraph 4 as follows (supersedes the corresponding change in the resolution of issue 1059):
Class prvalues can have cv-qualified types; non-class prvalues always have cv-unqualified types.Unless otherwise indicated (7.6.1.3 [expr.call]), prvalues shall always have complete types or the void type; in addition to these types, glvalues can also have incomplete types. [Note: class and array prvalues can have cv-qualified types; other prvalues always have cv-unqualified types. See Clause 7 [expr]. —end note]
Add a new paragraph following Clause 7 [expr] paragraph 5:
If an expression initially has the type “reference to T”...
If a prvalue initially has the type “cv T,” where T is a cv-unqualified non-class, non-array type, the type of the expression is adjusted to T prior to any further analysis.
Change 7.6.1.3 [expr.call] paragraph 3 as follows:
If the postfix-expression designates a destructor (11.4.7 [class.dtor]), the type of the function call expression is void; otherwise, the type of the function call expression is the return type of the statically chosen function (i.e., ignoring the virtual keyword), even if the type of the function actually called is different. This return type shall be an object type, a reference type orthe typecv void.
Change 7.6.1.4 [expr.type.conv] paragraph 2 as follows:
...[Note: if T is a non-class type that is cv-qualified, the cv-qualifiers areignoreddiscarded when determining the type of the resulting prvalue (7.2.1 [basic.lval]Clause 7 [expr]). —end note]
Change 7.6.3 [expr.cast] paragraph 1 as follows:
...[Note: if T is a non-class type that iscv-qualifiedcv-qualified, the cv-qualifiers areignoreddiscarded when determining the type of the resulting prvalue; see7.2.1 [basic.lval]Clause 7 [expr]. —end note]
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
2013-05-03 00:00:00 | admin | set | status: dr -> drwp |
2012-11-03 00:00:00 | admin | set | messages: + msg4125 |
2012-11-03 00:00:00 | admin | set | status: ready -> dr |
2012-02-27 00:00:00 | admin | set | status: tentatively ready -> ready |
2012-01-17 00:00:00 | admin | set | status: drafting -> tentatively ready |
2011-03-12 00:00:00 | admin | create |