From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5662 invoked by alias); 23 Jul 2007 22:05:41 -0000 Received: (qmail 5359 invoked by uid 48); 23 Jul 2007 22:05:28 -0000 Date: Mon, 23 Jul 2007 22:05:00 -0000 Message-ID: <20070723220528.5358.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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02380.txt.bz2 ------- Comment #8 from reichelt at gcc dot gnu dot org 2007-07-23 22:05 ------- Since Nathan's patch for PR32839, we get the following error message for the testcase in comment #7 (and similar messages for the original testcase, the testcase in comment #6, and PR 24606): bug.cc: In function 'void foo(F) [with F = void (*)(A)]': bug.cc:16: instantiated from here bug.cc:3: error: too few arguments to function I get the same error message if I make bar a non-template function. In contrast to my last sentence of comment #7, I now think the compiler does the right thing here. Nathan, do you think so, too? If yes, we can close this bug as fixed. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nathan at gcc dot gnu dot | |org Keywords|ice-on-valid-code |ice-on-invalid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602