Created on 2004-02-03.00:00:00 last changed 196 months ago
[Voted into WP at April 2005 meeting.]
Proposed resolution (October, 2004):
Change the first sentence in the second part of 7.7 [expr.const] paragraph 1 as follows:
An integral constant-expression can involve only literals of arithmetic types (5.13 [lex.literal], 6.8.2 [basic.fundamental]), enumerators, non-volatile const variables or static data members of integral or enumeration types initialized with constant expressions (9.4 [dcl.init]), non-type template parameters of integral or enumeration types, and sizeof expressions.
I'm looking at 7.7 [expr.const]. I see:
An integral constant-expression can involve only ... const variables or static data members of integral or enumeration types initialized with constant expressions ...
Shouldn't that be "const non-volatile"?
It seems weird to say that:
const volatile int i = 3; int j[i];is valid.
Steve Adamczyk: See issue 76, which made the similar change to 9.2.9.2 [dcl.type.cv] paragraph 2, and probably should have changed this one as well.
History | |||
---|---|---|---|
Date | User | Action | Args |
2008-10-05 00:00:00 | admin | set | status: wp -> cd1 |
2005-10-22 00:00:00 | admin | set | status: dr -> wp |
2005-05-01 00:00:00 | admin | set | messages: + msg1189 |
2005-05-01 00:00:00 | admin | set | status: ready -> dr |
2004-11-07 00:00:00 | admin | set | messages: + msg1046 |
2004-11-07 00:00:00 | admin | set | status: drafting -> ready |
2004-04-09 00:00:00 | admin | set | status: open -> drafting |
2004-02-03 00:00:00 | admin | create |