This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37088] Functions with default parameters not correctly handled inside templates.
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2008 16:21:32 -0000
- Subject: [Bug c++/37088] Functions with default parameters not correctly handled inside templates.
- References: <bug-37088-16586@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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