From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3864 invoked by alias); 22 Jan 2010 11:57:53 -0000 Received: (qmail 3791 invoked by uid 48); 22 Jan 2010 11:57:37 -0000 Date: Fri, 22 Jan 2010 11:57:00 -0000 Message-ID: <20100122115737.3790.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42844] const variable requires initializer / no explicitly declared default constructor In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "redi at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg02722.txt.bz2 ------- 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