diff options
author | Jason Merrill <jason@redhat.com> | 2020-01-17 08:37:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-01-17 09:25:01 -0500 |
commit | eff9c61dfb082cb3ea26f354d795e4098ec76866 (patch) | |
tree | 4f3aa4074d5cf5eaee21e6f2877077f5d0f20087 /libcpp | |
parent | c60a18f8056facdcf370ce0e5f51550c9df5b539 (diff) | |
download | gcc-eff9c61dfb082cb3ea26f354d795e4098ec76866.zip gcc-eff9c61dfb082cb3ea26f354d795e4098ec76866.tar.gz gcc-eff9c61dfb082cb3ea26f354d795e4098ec76866.tar.bz2 |
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions