]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/92531 - ICE with noexcept(lambda).
authorJason Merrill <jason@redhat.com>
Fri, 17 Jan 2020 13:37:49 +0000 (08:37 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 17 Jan 2020 14:56:32 +0000 (09:56 -0500)
commit3815f211649cd5c8a277348aa71c9c18bc5ed070
tree3c1b78f231de9db0db7a142bf1c38fd87f7ba754
parent5c7938eb3f1a116b1cf9a28090f2cc5e08814ce4
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.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/constexpr-lambda25.C [new file with mode: 0644]