This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46873] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Dec 2010 17:26:04 +0000
- Subject: [Bug c++/46873] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5489
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46873
Summary: [C++0x] ICE: in build_data_member_initialization, at
cp/semantics.c:5489
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
---------- testcase.C ----------
struct S
{
int i:1;
};
struct T
{
const S s;
constexpr T (S a = S ()) : s (a) { }
};
T t;
--------------------------------
I don't know if the code is valid, but the original code was (unless there is
invalid code in system headers).
Compiler output:
$ gcc -std=c++0x testcase.C
gcc -std=c++0x testcase.C
testcase.C: In constructor 'constexpr T::T(S)':
testcase.C:9:38: internal compiler error: in build_data_member_initialization,
at cp/semantics.c:5489
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r167621 - crash