From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25414 invoked by alias); 29 Jun 2005 14:09:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25402 invoked by uid 48); 29 Jun 2005 14:09:17 -0000 Date: Wed, 29 Jun 2005 14:09:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050629140915.22233.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22233] New: [3.4/4.0/4.1 regression] ICE with wrong number of template parameters X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03446.txt.bz2 List-Id: The following invalid code snippet causes an ICE since GCC 3.3: ============================================== template struct A { void foo(); }; template void A::foo() {} A<0> a; ============================================== bug.cc:6: error: got 2 template parameters for `void A< >::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