public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters Date: Wed, 29 Jun 2005 14:09:00 -0000 [thread overview] Message-ID: <20050629140915.22233.reichelt@gcc.gnu.org> (raw) 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
next reply other threads:[~2005-06-29 14:09 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-06-29 14:09 reichelt at gcc dot gnu dot org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050629140915.22233.reichelt@gcc.gnu.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).