public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51884] New: ICE with c++11 thread and templates
@ 2012-01-17 17:13 bluescarni at gmail dot com
  2012-01-17 17:32 ` [Bug c++/51884] " bluescarni at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bluescarni at gmail dot com @ 2012-01-17 17:13 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51884
           Summary: ICE with c++11 thread and templates
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bluescarni@gmail.com


Created attachment 26354
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26354
Code snippet demonstrating the issue.

The attached minimal code snippet causes an ICE on g++-4.5.3, g++-4.6.2 and
g++-4.7.0-alpha20111231. The compilation command is:

g++ -std=c++0x bug.cpp

The output on 4.5:

In file included from bug.cpp:1:0:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4/thread:112:7: internal
compiler error: in dfs_walk_once, at cp/search.c:1645

The output on 4.6:

In file included from bug.cpp:1:0:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/thread:109:14: internal
compiler error: in dfs_walk_once, at cp/search.c:1659

The output on 4.7:

‘
In file included from bug.cpp:1:0:
in dfs_walk_once, at cp/search.c:1695

The ICE is avoided at least in these cases:

- replace the method bar() with a non-templated version,
- replace the std::enable_if<...> enabler with void.


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

end of thread, other threads:[~2013-03-08 16:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17 17:13 [Bug c++/51884] New: ICE with c++11 thread and templates bluescarni at gmail dot com
2012-01-17 17:32 ` [Bug c++/51884] " bluescarni at gmail dot com
2012-01-17 18:26 ` bluescarni at gmail dot com
2012-01-18  1:01 ` paolo.carlini at oracle dot com
2012-01-18  1:05 ` paolo.carlini at oracle dot com
2012-01-18  3:04 ` pinskia at gcc dot gnu.org
2012-01-18  3:23 ` [Bug c++/51884] lamba with templates pinskia at gcc dot gnu.org
2013-03-05 20:08 ` [Bug c++/51884] lambda " jason at gcc dot gnu.org
2013-03-06 14:09 ` [Bug c++/51884] [C++11] ICE with local class/lambda template argument jason at gcc dot gnu.org
2013-03-08 16:04 ` jason at gcc dot gnu.org
2013-03-08 16:05 ` jason at gcc dot gnu.org
2013-03-08 16:09 ` 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).