public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56583] New: ICE with constexpr ctor and nested structs and unions
@ 2013-03-09 21:53 msharov at users dot sourceforge.net
2013-03-09 22:16 ` [Bug c++/56583] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: msharov at users dot sourceforge.net @ 2013-03-09 21:53 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/56583] ICE with constexpr ctor and nested structs and unions
2013-03-09 21:53 [Bug c++/56583] New: ICE with constexpr ctor and nested structs and unions msharov at users dot sourceforge.net
@ 2013-03-09 22:16 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-09 22:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56583
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-09 22:15:47 UTC ---
Dup.
*** This bug has been marked as a duplicate of bug 54922 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-09 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-09 21:53 [Bug c++/56583] New: ICE with constexpr ctor and nested structs and unions msharov at users dot sourceforge.net
2013-03-09 22:16 ` [Bug c++/56583] " paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).