Created on2012-03-29.00:00:00 last changed145 months ago
[Moved to DR at the April, 2013 meeting.]
Proposed resolution (October, 2012):
Change 6.10.3.2 [basic.start.static] paragraph 2 as follows:
Constant initialization is performed:
...
if an object with static or thread storage duration is notinitialized by a constructor call and ifeither the object isvalue-initialized or every full-expression that appears in itsinitializer is a constant expression.
According to 6.10.3.2 [basic.start.static] paragraph 2,
Constant initialization is performed:
...
if an object with static or thread storage duration is not initializedby a constructor call and if every full-expression that appears in itsinitializer is a constant expression.
Presumably this would include a value-initialization (i.e., with noexpressions) such as
int a[1000]{};However, we have recently clarified the degenerate cases of othersimilar rules referencing “every,” so it wouldn't hurt tobe more explicit here.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
| 2013-10-14 00:00:00 | admin | set | status: dr -> drwp |
| 2013-05-03 00:00:00 | admin | set | messages: +msg4371 |
| 2013-05-03 00:00:00 | admin | set | status: ready -> dr |
| 2012-11-03 00:00:00 | admin | set | messages: +msg4044 |
| 2012-11-03 00:00:00 | admin | set | status: open -> ready |
| 2012-03-29 00:00:00 | admin | create | |