public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41570]  New: g++ 4.5 ICE with -g and c++0x variadic templates
@ 2009-10-04 17:44 ciaran dot mccreesh at googlemail dot com
  2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ciaran dot mccreesh at googlemail dot com @ 2009-10-04 17:44 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]

g++ (Gentoo SVN) 4.5.0-pre9999 built 20091004 (experimental) rev. 152437

$ g++ -c -std=gnu++0x a.cc && echo ok
ok

$ g++ -c -std=gnu++0x a.cc -g && echo ok
a.cc: In instantiation of ‘M<C>’:
a.cc:22:44:   instantiated from ‘M<B, C>’
a.cc:22:44:   instantiated from ‘M<A, B, C>’
a.cc:37:20:   instantiated from here
a.cc:21:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.

$ cat a.cc
template <typename...>
struct M;

template <typename I_, typename T_>
struct E
{
};

struct T
{
};

template <>
struct M<>
{
    typedef T Type;
};

template <typename H_, typename... T_>
struct M<H_, T_...>
{
    typedef E<H_, typename M<T_...>::Type> Type;
};

struct A
{
};

struct R :
    M<A>::Type
{
};


-- 
           Summary: g++ 4.5 ICE with -g and c++0x variadic templates
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ciaran dot mccreesh at googlemail dot com


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


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

end of thread, other threads:[~2009-10-15 21:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-04 17:44 [Bug c++/41570] New: g++ 4.5 ICE with -g and c++0x variadic templates ciaran dot mccreesh at googlemail dot com
2009-10-04 18:24 ` [Bug c++/41570] [c++0x] g++ 4.5 ICE with -g and " paolo dot carlini at oracle dot com
2009-10-04 22:56 ` [Bug c++/41570] [4.5 Regression] [c++0x] " ciaran dot mccreesh at googlemail dot com
2009-10-08 17:54 ` dodji at gcc dot gnu dot org
2009-10-11 21:51 ` dodji at gcc dot gnu dot org
2009-10-12 11:57 ` dodji at gcc dot gnu dot org
2009-10-12 12:17 ` dodji at gcc dot gnu dot org
2009-10-15 21:18 ` hjl at gcc dot gnu dot 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).