[Bug c++/51373] New: ICE for static pointer to member initialized in-class
pubby.8 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 1 04:36:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list