Title
Initializing variant class members
Status
c++11
Section
11.9.3 [class.base.init]
Submitter
Ryou Ezoe

Created on 2011-02-08.00:00:00 last changed 130 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-02-08.00:00:00

The current wording of 11.9.3 [class.base.init] paragraph 5 says,

A ctor-initializer may initialize the member of an anonymous union that is a member of the constructor's class.

The wording “the member” is strange; furthermore, this should be restricted to non-static data members. That could be accomplished by using the existing term “variant members,” which is defined in 11.5 [class.union] paragraph 8 to be “the non-static data members of all anonymous unions that are members of” the class (which by definition must be non-static data members, since a storage class specifier is not allowed on an anonymous union in class scope).

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3367
2011-04-10 00:00:00adminsetstatus: open -> fdis
2011-02-08 00:00:00admincreate