[Bug c++/30297] New: [4.1/4.2/4.3 regression] ICE with extern "C" and inheritance

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 26 11:20:00 GMT 2006


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



More information about the Gcc-bugs mailing list