public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "delong.j at fb dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50361] New: gcc 4.6 ICE probably relating to std::initializer_list and template argument deduction Date: Mon, 12 Sep 2011 05:49:00 -0000 [thread overview] Message-ID: <bug-50361-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50361 Bug #: 50361 Summary: gcc 4.6 ICE probably relating to std::initializer_list and template argument deduction Classification: Unclassified Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: delong.j@fb.com Created attachment 25243 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25243 preprocessed source output Error is: gcc_test/test.cpp: In function ‘int main()’: gcc_test/test.cpp:67: 1: internal compiler error: in fold_convert_loc, at fold-const.c:2028 Please submit a full bug report, with preprocessed source if appropriate. I was running into this in a fairly convoluted case, but pulled parts of it out until I had a fairly minimal repro. A hint here appears to be that if you define the constructors inside the class instead of outside the class the ICE goes away. Also removing the union member removes the ICE.
next reply other threads:[~2011-09-12 4:52 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-12 5:49 delong.j at fb dot com [this message] 2011-09-12 7:51 ` [Bug c++/50361] " redi at gcc dot gnu.org 2011-09-12 11:50 ` [Bug c++/50361] [C++0x] " paolo.carlini at oracle dot com 2011-09-12 12:09 ` [Bug c++/50361] [C++0x] [4.7 Regression] " paolo.carlini at oracle dot com 2011-09-12 12:16 ` [Bug c++/50361] [C++0x] [4.7 Regression] ICE with std::initializer_list nullptr paolo.carlini at oracle dot com 2011-09-12 19:46 ` [Bug c++/50361] [C++0x] [4.7 Regression] ICE with std::initializer_list and nullptr delong.j at fb dot com 2011-09-12 22:38 ` jason at gcc dot gnu.org 2011-09-15 14:34 ` jason at gcc dot gnu.org 2011-09-15 15:39 ` jason at gcc dot gnu.org 2011-09-16 20:32 ` delong.j at fb dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-50361-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).