[Bug c++/71832] [7/8 Regression] ICE on invalid C++11 code with incorrect decltype use for non-type template parameter: Segmentation fault

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue Mar 6 11:25:00 GMT 2018


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

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Skipping completely the body works for this testcase, isn't that difficult to
do, but goes too far, the template completely disappears and we end up with bad
error recovery for anything referring to it afterwards. Probably, a better
approximation would be skipping the *instantiations* of the body.


More information about the Gcc-bugs mailing list