[Bug c++/46930] New: [C++0x] ICE with static constexpr data member
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Dec 13 21:24:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930
Summary: [C++0x] ICE with static constexpr data member
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: paolo.carlini@oracle.com
Today was playing with this snippet inspired by an old constexpr paper:
struct S {
static constexpr int size;
};
const int limit = 2 * S::size;
constexpr int S::size = 256;
u3.cc:5:26: internal compiler error: in decl_constant_var_p, at cp/decl2.c:3563
More information about the Gcc-bugs
mailing list