[Bug c++/63809] Missing warning on extra template

2021-12-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #5 from Andrew Pinski  ---
Dup of bug 24314.

*** This bug has been marked as a duplicate of bug 24314 ***

[Bug c++/63809] Missing warning on extra template

2021-12-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

--- Comment #4 from Andrew Pinski  ---
Reduced testcase:
template
struct binary_traits{};

template <>
template 
struct binary_traits 
{
typedef int result_type;
};

- CUT 
This is rejected since GCC 8 with:
:6:8: error: too many template-parameter-lists
 struct binary_traits 
^

I suspect there is a dup now.

[Bug c++/63809] Missing warning on extra template

2015-08-12 Thread miyuki at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

Mikhail Maltsev miyuki at gcc dot gnu.org changed:

   What|Removed |Added

 CC||miyuki at gcc dot gnu.org

--- Comment #3 from Mikhail Maltsev miyuki at gcc dot gnu.org ---
*** Bug 66941 has been marked as a duplicate of this bug. ***


[Bug c++/63809] Missing warning on extra template

2015-08-12 Thread vanyacpp at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

--- Comment #2 from Ivan Sorokin vanyacpp at gmail dot com ---
(In reply to Marc Glisse from comment #0)
 g++ fails to warn about the extra parameter list. clang does warn, see
 PR63750.

Why is it a warning? Isn't this code incorrect? I can not find anything in
[temp.expl.spec] that forbid a code like this, but I can not find anything that
assign a specific meaning to this code either.

At least one compiler (MSVC) rejects this code with an error.


[Bug c++/63809] Missing warning on extra template

2015-08-12 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

Marc Glisse glisse at gcc dot gnu.org changed:

   What|Removed |Added

 CC||vanyacpp at gmail dot com

--- Comment #1 from Marc Glisse glisse at gcc dot gnu.org ---
*** Bug 67190 has been marked as a duplicate of this bug. ***


[Bug c++/63809] Missing warning on extra template

2014-12-08 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63809

Ville Voutilainen ville.voutilainen at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-12-08
 CC||ville.voutilainen at gmail dot 
com
 Ever confirmed|0   |1