[Bug c++/102449] template parameter with default argument is used without being verified during explicit specialization

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 28 15:51:49 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102449

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> I think this is valid code as the compiler can deduce that First is int.
> All compilers I have tried accept the code.

Agreed.


More information about the Gcc-bugs mailing list