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

             Bug #: 51588
           Summary: [4.4/4.5/4.6/4.7 Regression] ICE
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: reich...@gcc.gnu.org


The following invalid code snippet triggers an ICE since GCC 4.4.0:

======================
enum A {};

struct B : A
{
  int i;
};

int A::* p = &B::i;
======================

bug.cc:4:1: error: expected class-name before '{' token
bug.cc:8:18: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have enumeral_type in lookup_base, at
cp/search.c:212
Please submit a full bug report, [etc.]

Reply via email to