public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50361] New: gcc 4.6 ICE probably relating to std::initializer_list and template argument deduction
@ 2011-09-12  5:49 delong.j at fb dot com
  2011-09-12  7:51 ` [Bug c++/50361] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: delong.j at fb dot com @ 2011-09-12  5:49 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-09-16 20:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-12  5:49 [Bug c++/50361] New: gcc 4.6 ICE probably relating to std::initializer_list and template argument deduction delong.j at fb dot com
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

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).