public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters
@ 2005-06-29 14:09 reichelt at gcc dot gnu dot org
  2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-29 14:09 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 3.3:

==============================================
template<int> struct A
{
  void foo();
};

template<int N, char> void A<N>::foo() {}

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

bug.cc:6: error: got 2 template parameters for `void A<<anonymous> >::foo()'
bug.cc:6: error:   but 1 required
bug.cc: In instantiation of `A<0>':
bug.cc:8:   instantiated from here
bug.cc:6: internal compiler error: tree check: accessed elt 2 of tree_vec with 
   1 elts in tsubst, at cp/pt.c:6707
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4/4.0/4.1 regression] ICE with wrong number of
                    template parameters
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored, ice-
                    checking
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-09-02 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-29 14:09 [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters reichelt at gcc dot gnu dot org
2005-06-29 15:07 ` [Bug c++/22233] " pinskia at gcc dot gnu dot org
2005-08-17 20:26 ` reichelt at gcc dot gnu dot org
2005-08-22  9:55 ` cvs-commit at gcc dot gnu dot org
2005-08-22 10:05 ` cvs-commit at gcc dot gnu dot org
2005-08-22 11:21 ` [Bug c++/22233] [3.4 " reichelt at gcc dot gnu dot org
2005-08-24  5:38 ` reichelt at gcc dot gnu dot org
2005-09-02 11:21 ` cvs-commit at gcc dot gnu dot org
2005-09-02 11:22 ` reichelt at gcc dot gnu dot org
2005-09-02 11:23 ` reichelt 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).