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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-04-22
                 CC|                            |paolo.carlini at oracle dot com
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I believe we can cut it short and simply do (passes testing):

Index: decl.c
===================================================================
--- decl.c      (revision 270483)
+++ decl.c      (working copy)
@@ -10973,6 +10973,7 @@ grokdeclarator (const cp_declarator *declarator,
       error_at (typespec_loc, "template placeholder type %qT must be followed
"
                "by a simple declarator-id", type);
       inform (DECL_SOURCE_LOCATION (tmpl), "%qD declared here", tmpl);
+      return error_mark_node;
     }

   staticp = 0;

Reply via email to