[Bug c++/100983] Deduction guide for member template class rejected at class scope

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 22 13:32:16 GMT 2022


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

--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Artur Bać from comment #4)
> trunk at compiler explorer still rejects valid code
> 
> https://godbolt.org/z/v4ebhj9Gh, only the message of requirement of
> namespace scope is missing from gcc 11.2, invalid use of template-name
> without an argument list
> 
> https://godbolt.org/z/7Wev6saWz "ctad" must be declared at namespace scope +
> invalid use of template-name without an argument list

It works on trunk if you omit the dubious 'typename' before the template name:
https://godbolt.org/z/77M4dh3n5


More information about the Gcc-bugs mailing list