The following invalid code snippet causes an ICE on mainline:

=====================
namespace A {}
int A::* p;
=====================

bug.cc:2: internal compiler error: tree check: expected class 'type', have
'declaration' (namespace_decl) in build_offset_type, at tree.c:4591
Please submit a full bug report, [etc.]

The regression was introduced in June:
: Search converges between 2004-06-22-trunk (#470) and 2004-06-24-trunk (#471).

-- 
           Summary: [4.0 regression] ICE on invalid pointer-to-member
                    declaration
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18782

Reply via email to