[Bug c++/85028] [8 Regression] ICE on invalid C++ code: in tsubst_default_argument, at cp/pt.c:12340
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 28 10:15:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85028
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
In its way, the bug is interesting: parmtype is only used in the gcc_assert,
thus in principle the error recovery check could be moved inside it. However,
returning early makes for better (vs gcc-7) error recovery.
More information about the Gcc-bugs
mailing list