Title
Confusing definition for constant initializer
Status
nad
Section
6.9.3.2 [basic.start.static]
Submitter
Daniel Krügler

Created on 2013-09-12.00:00:00 last changed 130 months ago

Messages

Date: 2014-02-15.00:00:00

Rationale (February, 2014):

CWG felt that the existing wording is clear enough.

Date: 2022-11-20.07:54:16

According to 6.9.3.2 [basic.start.static] paragraph 2,

A constant initializer for an object o is an expression that is a constant expression, except that it may also invoke constexpr constructors for o and its subobjects even if those objects are of non-literal class types [Note: such a class may have a non-trivial destructor —end note].

This would be clearer if worded as something like,

A constant initializer for an object o is an expression that would be a constant expression if every constexpr constructor invoked for o and its subobjects were a constructor for a literal class type.
History
Date User Action Args
2014-03-03 00:00:00adminsetmessages: + msg4974
2014-03-03 00:00:00adminsetstatus: open -> nad
2013-09-12 00:00:00admincreate