From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25344 invoked by alias); 12 May 2006 23:18:39 -0000 Received: (qmail 25323 invoked by uid 48); 12 May 2006 23:18:32 -0000 Date: Fri, 12 May 2006 23:18:00 -0000 Subject: [Bug c++/27582] New: [4.0/4.1/4.2 regression] ICE with invalid template parameter X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" 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 X-SW-Source: 2006-05/txt/msg01247.txt.bz2 List-Id: The following invalid testcase triggers an ICE since GCC 3.4.0: =============================================== struct A { template void foo(); }; template > struct B {}; B b; =============================================== bug.cc:8: error: type/value mismatch at argument 1 in template parameter list for 'template)()> struct B' bug.cc:8: error: expected a constant of type 'int', got 'int' bug.cc:8: internal compiler error: tree check: expected tree_vec, have error_mark in any_dependent_template_arguments_p, at cp/pt.c:12751 Please submit a full bug report, [etc.] Patch on the way. -- Summary: [4.0/4.1/4.2 regression] ICE with invalid template parameter Product: gcc Version: 4.2.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=27582