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: [email protected]
ReportedBy: [email protected]
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.