From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6447 invoked by alias); 27 Dec 2006 03:35:56 -0000 Received: (qmail 6427 invoked by uid 48); 27 Dec 2006 03:35:47 -0000 Date: Wed, 27 Dec 2006 03:35:00 -0000 Message-ID: <20061227033547.6426.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/30303] [4.2/4.3 regression] ICE with invalid constructor definition In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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: 2006-12/txt/msg01942.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-27 03:35 ------- Mine for the new year: Index: decl.c =================================================================== --- decl.c (revision 120211) +++ decl.c (working copy) @@ -6216,7 +6219,10 @@ XXX Isn't this done in start_function, too? */ revert_static_member_fn (decl); if (DECL_ARTIFICIAL (old_decl)) - error ("definition of implicitly-declared %qD", old_decl); + { + error ("definition of implicitly-declared %qD", old_decl); + return error_mark_node; + } /* Since we've smashed OLD_DECL to its DECL_TEMPLATE_RESULT, we must do the same to DECL. */ -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-12-26 22:22:23 |2006-12-27 03:35:47 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30303