[Bug c++/56583] New: ICE with constexpr ctor and nested structs and unions
msharov at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sat Mar 9 21:53:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56583
Bug #: 56583
Summary: ICE with constexpr ctor and nested structs and unions
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: msharov@users.sourceforge.net
Created attachment 29632
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29632
The code causing the failure
An ICE occurs in a constexpr constructor where a member is initialized that is
in an anonymous member union containing an anonymous struct. See attached file.
Compiling with g++ -std=c++11 -c tes.cc yields:
tes.cc: In function 'int main()':
tes.cc:23:21: in constexpr expansion of 'r.CRect::CRect(1, 2, 3, 4)'
tes.cc:23:21: internal compiler error: in base_field_constructor_elt, at
cp/semantics.c:7033
Please submit a full bug report,
with preprocessed source if appropriate.
More information about the Gcc-bugs
mailing list