public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34055]  New: [4.3 regression] ICE with invalid specialization of variadic template
@ 2007-11-10 19:51 reichelt at gcc dot gnu dot org
  2007-11-10 19:51 ` [Bug c++/34055] " reichelt at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-10 19:51 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline:

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

template<typename...T> struct A<T*>
{
  void foo();
};

template<typename...T> void A<T*>::foo() {}
=====================================================================

bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note:         'T'
bug.cc:3: error: template parameters not used in partial specialization:
bug.cc:3: error:         'T'
bug.cc:8: internal compiler error: same canonical type node for different types
<typeprefixerror>* and T*
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with invalid specialization of
                    variadic template
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=34055


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

end of thread, other threads:[~2008-01-29 14:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-10 19:51 [Bug c++/34055] New: [4.3 regression] ICE with invalid specialization of variadic template reichelt at gcc dot gnu dot org
2007-11-10 19:51 ` [Bug c++/34055] " reichelt at gcc dot gnu dot org
2007-11-14 20:54 ` reichelt at gcc dot gnu dot org
2007-12-08 20:50 ` reichelt at gcc dot gnu dot org
2007-12-20 21:02 ` dgregor at gcc dot gnu dot org
2008-01-02 19:11 ` mmitchel at gcc dot gnu dot org
2008-01-02 19:41 ` mmitchel at gcc dot gnu dot org
2008-01-15 17:41 ` dgregor at gcc dot gnu dot org
2008-01-15 18:10 ` dgregor at gcc dot gnu dot org
2008-01-15 18:10 ` dgregor at gcc dot gnu dot org
2008-01-16 23:48 ` reichelt at gcc dot gnu dot org
2008-01-28 22:49 ` dgregor at gcc dot gnu dot org
2008-01-29 14:25 ` dgregor at gcc dot gnu dot org
2008-01-29 14:26 ` 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).