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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I wonder if in such cases, where we run out of tokens and we issue:

   error_at (token->location, "file ends in default argument");

from cp_parser_cache_defarg we should instead use something like a fatal_error
and stop the meaningless chain of redundant errors. Certainly that avoids the
error recovery ICE at issue and passes testing...

Reply via email to