This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51588] New: [4.4/4.5/4.6/4.7 Regression] ICE


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: unassigned@gcc.gnu.org
        ReportedBy: reichelt@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.]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]