[Bug c++/92531] [9/10 Regression] ICE in uses_template_parms, at cp/pt.c:10471
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 17 14:26:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92531
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:eff9c61dfb082cb3ea26f354d795e4098ec76866
commit r10-6042-geff9c61dfb082cb3ea26f354d795e4098ec76866
Author: Jason Merrill <jason@redhat.com>
Date: Fri Jan 17 08:37:49 2020 -0500
PR c++/92531 - ICE with noexcept(lambda).
This was failing because uses_template_parms didn't recognize LAMBDA_EXPR
as
a kind of expression. Instead of trying to enumerate all the different
varieties of expression and then aborting if what's left isn't
error_mark_node, let's handle error_mark_node and then assume anything else
is an expression.
* pt.c (uses_template_parms): Don't try to enumerate all the
expression cases.
More information about the Gcc-bugs
mailing list