From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20188 invoked by alias); 20 Jun 2006 19:50:33 -0000 Received: (qmail 20162 invoked by uid 48); 20 Jun 2006 19:50:26 -0000 Date: Tue, 20 Jun 2006 19:56:00 -0000 Subject: [Bug c++/28110] New: [4.1/4.2 regression] ICE with invalid template constant 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-06/txt/msg01888.txt.bz2 List-Id: The following invalid code snippet causes an ICE since GCC 4.1.0: ================================= template struct A {}; template struct B { template B(A); }; B a=A<0>(); ================================= bug.cc: In instantiation of 'B': bug.cc:8: instantiated from here bug.cc:5: error: 'double' is not a valid type for a template constant parameter bug.cc:8: internal compiler error: in template_decl_level, at cp/pt.c:9986 Please submit a full bug report, [etc.] Testing a patch. -- Summary: [4.1/4.2 regression] ICE with invalid template constant parameter Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: reichelt at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28110