https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88187
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- With --- gcc/cp/decl.c.jj 2018-11-17 00:16:41.000000000 +0100 +++ gcc/cp/decl.c 2018-11-26 11:18:30.518620651 +0100 @@ -11276,7 +11276,7 @@ grokdeclarator (const cp_declarator *dec if (!tmpl) if (tree late_auto = type_uses_auto (late_return_type)) tmpl = CLASS_PLACEHOLDER_TEMPLATE (late_auto); - if (tmpl) + if (tmpl && inner_declarator) { if (!dguide_name_p (unqualified_id)) { it is rejected as before (e.g. in gcc 8) in -std=c++17 mode with error: ‘auto’ parameter not permitted in this context