This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42844] const variable requires initializer / no explicitly declared default constructor



------- Comment #2 from redi at gcc dot gnu dot org  2010-01-22 12:27 -------
N.B. the wording has moved in C++0x but the requirement is similar:

6 ... If a program calls for the default initialization of an object of a
const-qualified type T, T shall be a class type with a user-provided default
constructor.

11 If no initializer is specified for an object, the object is
default-initialized;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42844


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]