From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28930 invoked by alias); 17 Nov 2005 11:59:18 -0000 Received: (qmail 28910 invoked by uid 48); 17 Nov 2005 11:59:15 -0000 Date: Thu, 17 Nov 2005 11:59:00 -0000 Message-ID: <20051117115915.28909.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/24602] g++: Internal error: Illegal instruction (program cc1plus) In-Reply-To: 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: 2005-11/txt/msg02434.txt.bz2 List-Id: ------- Comment #7 from reichelt at gcc dot gnu dot org 2005-11-17 11:59 ------- Here's a sightly simpler testcase. If I remove the copy-ctor from A, I get the failure from PR24606. ========================================= template void foo(F f) { f(); } struct A { A(); A(const A&); }; template void bar(A = A()); void baz() { foo(bar<0>); } ========================================= Btw, removing the template from "bar" makes the code compile. So it seems like the code is valid after all. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-valid-code, monitored Last reconfirmed|0000-00-00 00:00:00 |2005-11-17 11:59:15 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602