From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28428 invoked by alias); 11 Jun 2010 11:12:00 -0000 Received: (qmail 28360 invoked by uid 48); 11 Jun 2010 11:11:48 -0000 Date: Fri, 11 Jun 2010 11:12:00 -0000 Message-ID: <20100611111148.28359.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/44499] No default constructor available In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu 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-06/txt/msg01274.txt.bz2 ------- Comment #5 from manu at gcc dot gnu dot org 2010-06-11 11:11 ------- Comeau C/C++ 4.3.10.1 (Oct 6 2008 11:28:09) for ONLINE_EVALUATION_BETA2 Copyright 1988-2008 Comeau Computing. All rights reserved. MODE:strict errors C++ C++0x_extensions "ComeauTest.c", line 9: error: const variable "g_d" requires an initializer -- class "D" has no explicitly declared default constructor const D g_d; ^ "ComeauTest.c", line 9: warning: variable "g_d" was declared but never referenced const D g_d; ^ 1 error detected in the compilation of "ComeauTest.c". I think the error message of comeau is better (but our note is better). I will write a patch. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44499