[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2017-10-16 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2017-10-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 --- Comment #5 from Jonathan Wakely --- *** Bug 61472 has been marked as a duplicate of this bug. ***

[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2017-10-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 --- Comment #4 from Jonathan Wakely --- Fixed in GCC 5.1.0: d.cc:2:31: error: redeclaration of ‘template void f(int)’ may not have default arguments [-fpermissive] template void f(int=3); // ill-formed ^ If we

[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2014-06-11 Thread filip.roseen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 --- Comment #1 from Filip Roséen filip.roseen at gmail dot com --- Created attachment 32922 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=32922action=edit testcase-real.cpp The previously attached `testcase.cpp` contains a code snippet for

[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2014-06-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug c++/61471] redeclaration of default-argument in function template declaration not caught

2014-06-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61471 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org --- Oops, I messed up my test - we don't diagnose this even at instantiation