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 11:57:37 -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 #1 from redi at gcc dot gnu dot org 2010-01-22 11:57 -------
Confirmed, not a regression.
[dcl.init]/9:
If no initializer is specified for an object, and the object is of (possibly
cv-qualified) non-POD class type (or array thereof), the object shall be
default-initialized; if the object is of const-qualified type, the underlying
class type shall have a user-declared default constructor.
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Known to fail| |4.1.2 4.4.2
Last reconfirmed|0000-00-00 00:00:00 |2010-01-22 11:57:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42844