From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16530 invoked by alias); 13 Aug 2008 16:22:52 -0000 Received: (qmail 15956 invoked by uid 48); 13 Aug 2008 16:21:32 -0000 Date: Wed, 13 Aug 2008 16:22:00 -0000 Message-ID: <20080813162132.15955.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37088] Functions with default parameters not correctly handled inside templates. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bangerth at dealii 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: 2008-08/txt/msg01029.txt.bz2 ------- Comment #2 from bangerth at dealii dot org 2008-08-13 16:21 ------- (In reply to comment #0) > bool pred4(const char *, const char *, const char *x = "", const char *y = ""); The type of pred4 is still bool (*) (const char *, const char *, const char *x, const char *) and so when you pass this function through a pointer it can't be called with only two parameters. Andrew is right that this used to be one of the many ill-conceived gcc extensions. W. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37088