This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61472] added default-argument in later declaration of function template not caught
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jun 2014 11:23:39 +0000
- Subject: [Bug c++/61472] added default-argument in later declaration of function template not caught
- Auto-submitted: auto-generated
- References: <bug-61472-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61472
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I messed up my test for this too - we only diagnose it if you try to use the
default argument, so it seems to be ignored on the redeclaration.