This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42844] const variable requires initializer / no explicitly declared default constructor
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2010 12:27:02 -0000
- Subject: [Bug c++/42844] const variable requires initializer / no explicitly declared default constructor
- References: <bug-42844-9357@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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