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++/51373] New: ICE for static pointer to member initialized in-class


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

             Bug #: 51373
           Summary: ICE for static pointer to member initialized in-class
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pubby.8@gmail.com


gcc version 4.7.0 20111112 (experimental) (GCC) 

Two seemingly relate ICEs when dealing with pointer to member:

struct foo {
    int a = 42;
    static int foo::*b = &foo::a;
};
internal compiler error: Segmentation fault

struct foo {
    int a = 42;
    static int foo::*b;
    auto& c = b;
};
internal compiler error: in unify_one_argument, at cp/pt.c:15008

Not sure if the code is valid.


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