[Bug c++/68722] [4.9/5/6 Regression] internal compiler error: in merge_exception_specifiers, at cp/typeck2.c:2108

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 14 18:57:00 GMT 2016


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...


More information about the Gcc-bugs mailing list