public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26938]  New: [4.0/4.1/4.2 regression] ICE with wrong number of template parameters
@ 2006-03-30 10:09 reichelt at gcc dot gnu dot org
  2006-03-30 23:18 ` [Bug c++/26938] " pinskia 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 @ 2006-03-30 10:09 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase causes an ICE since GCC 3.1:

========================================
template<int, int = 0> struct A;

template<int> struct A
{
  A();
};

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

bug.cc:1: error: previous declaration 'template<int <anonymous>, int
<anonymous> > struct A'
bug.cc:3: error: used 2 template parameter(s) instead of 1
bug.cc: In constructor 'A<<anonymous>, <anonymous> >::A() [with int <anonymous>
= 0]':
bug.cc:8:   instantiated from here
bug.cc:5: internal compiler error: tree check: accessed elt 2 of tree_vec with
1 elts in tsubst, at cp/pt.c:7080
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with wrong number of
                    template parameters
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-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=26938


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

end of thread, other threads:[~2008-07-04 15:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-30 10:09 [Bug c++/26938] New: [4.0/4.1/4.2 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
2006-03-30 23:18 ` [Bug c++/26938] " pinskia at gcc dot gnu dot org
2006-06-04 18:20 ` mmitchel at gcc dot gnu dot org
2006-07-05 18:41 ` pinskia at gcc dot gnu dot org
2006-07-16  8:31 ` pinskia at gcc dot gnu dot org
2006-07-17  3:20 ` mmitchel at gcc dot gnu dot org
2006-09-23 16:35 ` patchapp at dberlin dot org
2006-09-23 16:35 ` lmillward at gcc dot gnu dot org
2006-09-25 19:45 ` lmillward at gcc dot gnu dot org
2006-09-25 19:47 ` [Bug c++/26938] [4.0/4.1 " lmillward at gcc dot gnu dot org
2007-02-03 16:27 ` gdr at gcc dot gnu dot org
2007-02-03 20:25 ` pinskia at gcc dot gnu dot org
2007-02-14  9:36 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:26 ` [Bug c++/26938] [4.1 " jsm28 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).