From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31744 invoked by alias); 26 Dec 2006 11:20:23 -0000 Received: (qmail 31725 invoked by uid 48); 26 Dec 2006 11:20:11 -0000 Date: Tue, 26 Dec 2006 11:20:00 -0000 Subject: [Bug c++/30297] New: [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt 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/msg01881.txt.bz2 The following (IMHO valid) code snippet triggers an ICE since GCC 4.1.0: ================================== struct A { int i; }; extern "C" struct B : A { A::i; }; ================================== bug.cc:7: internal compiler error: tree check: expected tree that contains 'decl with visibility' structure, have 'field_decl' in decl_linkage, at cp/tree.c:2225 Please submit a full bug report, [etc.] -- Summary: [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30297