https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94844
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is intentional. You get a diagnostic with -pedantic or -pedantic-errors
94844.cc: In function ‘int main()’:
94844.cc:9:8: warning: ‘long’ specified with ‘Foo’ {aka ‘long unsigned int’}
[-Wpedantic]
9 | func<long Foo>(-1);
| ^~~~
*** This bug has been marked as a duplicate of bug 80516 ***