public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47049] New: internal compiler error: in write_unnamed_type_name due to C++0x lamba use
@ 2010-12-23  9:29 emn13+gcc at nerbonne dot org
  2010-12-23  9:30 ` [Bug c++/47049] " emn13+gcc at nerbonne dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: emn13+gcc at nerbonne dot org @ 2010-12-23  9:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47049

           Summary: internal compiler error: in write_unnamed_type_name
                    due to C++0x lamba use
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: emn13+gcc@nerbonne.org


Created attachment 22842
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22842
Preprocessed source

errtest.cpp: In lambda function:
errtest.cpp:16:78: internal compiler error: in write_unnamed_type_name, at
cp/mangle.c:1311

While using a mingw64 build I encountered the above ICE and reported it @
http://sourceforge.net/tracker/?func=detail&atid=983354&aid=3141173&group_id=202880

It was suggested that this is a gcc bug (and it looks like it).  I'm using a
lambda in a class template; as follows:

std::sort(v.begin(),v.end(), [&eigenvaluesUnsorted](size_t a, size_t b) -> bool
{ return eigenvaluesUnsorted(a) > eigenvaluesUnsorted(b);});

Attached are the small unpreprocessed source, the huge preprocessed source, and
g++'s output.  The command line was:
g++ -I%EIGEN3_DIR% --std=c++0x -march=core2 -v -save-temps errtest.cpp
2>gcc-err.txt


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

end of thread, other threads:[~2011-05-28  3:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-23  9:29 [Bug c++/47049] New: internal compiler error: in write_unnamed_type_name due to C++0x lamba use emn13+gcc at nerbonne dot org
2010-12-23  9:30 ` [Bug c++/47049] " emn13+gcc at nerbonne dot org
2010-12-23  9:31 ` emn13+gcc at nerbonne dot org
2010-12-23  9:33 ` emn13+gcc at nerbonne dot org
2011-01-20 12:01 ` [Bug c++/47049] [C++0x] ICE in write_unnamed_type_name with lambda use emn13+gcc at nerbonne dot org
2011-01-20 12:10 ` redi at gcc dot gnu.org
2011-01-20 15:42 ` redi at gcc dot gnu.org
2011-01-23 15:03 ` emn13+gcc at nerbonne dot org
2011-01-23 16:38 ` redi at gcc dot gnu.org
2011-01-23 17:58 ` [Bug c++/47049] [4.5/4.6 Regression] " hjl.tools at gmail dot com
2011-01-28 17:06 ` jakub at gcc dot gnu.org
2011-02-08 13:58 ` [Bug c++/47049] " rguenth at gcc dot gnu.org
2011-02-08 14:00 ` jakub at gcc dot gnu.org
2011-05-27 20:25 ` jason at gcc dot gnu.org
2011-05-28  0:58 ` jason at gcc dot gnu.org
2011-05-28  3:23 ` jason at gcc dot gnu.org
2011-05-28  6:18 ` jason at gcc dot gnu.org

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