https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65406
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Severity|minor |enhancement Keywords| |diagnostic Last reconfirmed| |2021-08-13 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- We do get: <source>:22:26: error: 'not_here::Bar::type' is not a type 22 | [](/*typename*/ Bar::type){}; | ^~~~ Note C++20 we accept the code as typename is not required here any more. clang produces: <source>:22:21: error: missing 'typename' prior to dependent type name 'Bar::type' [](/*typename*/ Bar::type){}; ^~~~~~~~~ typename Confirmed.