public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/32565]  New: [4.3 regression] ICE with specialization of variadic template
@ 2007-06-30 16:48 reichelt at gcc dot gnu dot org
  2007-06-30 16:48 ` [Bug c++/32565] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-06-30 16:48 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE on mainline:

============================================================
template<typename...> struct A;

template<template<int...> class T> struct A<T<0> > {};

template<int> struct B;

A<B<0> > a;
============================================================

bug.cc:7: internal compiler error: tree check: expected class 'expression',
have 'constant' (integer_cst) in unify, at cp/pt.c:12796
Please submit a full bug report, [etc.]


A similar testcase generates a slightly different error message:

============================================================
template<typename...> struct A;

template<template<typename...> class T> struct A<T<int> > {};

template<typename> struct B;

A<B<int> > a;
============================================================

bug.cc:7: internal compiler error: tree check: expected class 'expression',
have 'type' (integer_type) in unify, at cp/pt.c:12796
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with specialization of variadic
                    template
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-12-18 22:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-30 16:48 [Bug c++/32565] New: [4.3 regression] ICE with specialization of variadic template reichelt at gcc dot gnu dot org
2007-06-30 16:48 ` [Bug c++/32565] " reichelt at gcc dot gnu dot org
2007-08-10  0:33 ` mmitchel at gcc dot gnu dot org
2007-09-27 12:12 ` jakub at gcc dot gnu dot org
2007-12-07 20:14 ` rguenth at gcc dot gnu dot org
2007-12-15  8:29 ` dgregor at gcc dot gnu dot org
2007-12-18 21:20 ` dgregor at gcc dot gnu dot org
2007-12-18 22:15 ` dgregor 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).