From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11211 invoked by alias); 27 Dec 2006 04:02:01 -0000 Received: (qmail 11169 invoked by uid 48); 27 Dec 2006 04:01:52 -0000 Date: Wed, 27 Dec 2006 04:02:00 -0000 Message-ID: <20061227040152.11168.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/30297] [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance 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/msg01945.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-12-27 04:01 ------- And another one: Index: tree.c =================================================================== --- tree.c (revision 120211) +++ tree.c (working copy) @@ -2199,6 +2199,10 @@ then handles a few special cases. Ideally, we would calculate linkage first, and then transform that into a concrete implementation. */ + + /* Field decls have no linkage. */ + if (TREE_CODE (decl) == FIELD_DECL) + return lk_none; /* Things that don't have names have no linkage. */ if (!DECL_NAME (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:32:09 |2006-12-27 04:01:52 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30297