From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19465 invoked by alias); 11 Mar 2007 22:58:47 -0000 Received: (qmail 19428 invoked by uid 48); 11 Mar 2007 22:58:38 -0000 Date: Sun, 11 Mar 2007 22:58:00 -0000 Subject: [Bug c++/31141] New: [4.3 regression] ICE with ellipsis in template parameter list 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-03/txt/msg01003.txt.bz2 The following invalid code snippet triggers an ICE on mainline: ======================================== template void foo(int x[1][N]); void bar() { int x[1][1]; foo(x); } ======================================== bug.cc:1: error: ISO C++ does not include variadic templates bug.cc: In function 'void bar()': bug.cc:1: internal compiler error: tree check: expected class 'expression', have 'constant' (integer_cst) in tsubst_pack_expansion, at cp/pt.c:6829 Please submit a full bug report, [etc.] Looks like this was caused by your patch for variadic templates, Douglas: 2007-03-09 Douglas Gregor PR c++/20599 * typeck.c (check_return_expr): Check for bare parameter packs. (comptypes): Compare template parameter packs and type pack expansions. ... -- Summary: [4.3 regression] ICE with ellipsis in template parameter list Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=31141