From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21211 invoked by alias); 2 Apr 2007 19:47:29 -0000 Received: (qmail 21169 invoked by uid 48); 2 Apr 2007 19:47:17 -0000 Date: Mon, 02 Apr 2007 19:47:00 -0000 Subject: [Bug c++/31436] New: [4.3 regression] ICE with invalid use of parameter pack in function arg 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-04/txt/msg00112.txt.bz2 More fallout from the variadic templates on mainline: =========================================================== template int foo(const T&) { union { T t; }; return t; } void bar() { foo(0); } =========================================================== bug.cc:1: error: parameter packs not expanded with `...': bug.cc:1: note: 'T' bug.cc: In function 'int foo(const T&) [with T = ]': bug.cc:9: instantiated from here bug.cc:4: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2432 Please submit a full bug report, [etc.] Similar to PR31434 and PR31435 as this is also invalid use of a parameter pack in a function argument. -- Summary: [4.3 regression] ICE with invalid use of parameter pack in function arg Product: gcc Version: 4.3.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=31436