This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51373] New: ICE for static pointer to member initialized in-class
- From: "pubby.8 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2011 04:36:03 +0000
- Subject: [Bug c++/51373] New: ICE for static pointer to member initialized in-class
- Auto-submitted: auto-generated
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.