https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77565
--- Comment #4 from Michel Morin <mimomorin at gmail dot com> --- It seems that the reason is: `cp_keyword_starts_decl_specifier_p` in `cp/parser.c` does not include `RID_TYPENAME`. Note that `typedef` is a decl-specifier ([dcl.spec] p.1 in the Standard).