diff options
| author | Marek Polacek <polacek@redhat.com> | 2021-03-09 20:55:14 -0500 |
|---|---|---|
| committer | Marek Polacek <polacek@redhat.com> | 2021-03-18 20:09:44 -0400 |
| commit | bd9b262fa9243e08fefa4973f08d1f09f6694ba0 (patch) | |
| tree | 4bd3bec7bf0cf91ad0c17bb131025cc63c3ba2fd /gcc/fold-const.c | |
| parent | 96ccb325432822f0f5b22bb44c2035ec1e7e8631 (diff) | |
| download | gcc-bd9b262fa9243e08fefa4973f08d1f09f6694ba0.zip gcc-bd9b262fa9243e08fefa4973f08d1f09f6694ba0.tar.gz gcc-bd9b262fa9243e08fefa4973f08d1f09f6694ba0.tar.bz2 | |
c++: Fix error-recovery with requires expression [PR99500]
This fixes an ICE on invalid code where one of the parameters was
error_mark_node and thus resetting its DECL_CONTEXT crashed.
gcc/cp/ChangeLog:
PR c++/99500
* parser.c (cp_parser_requirement_parameter_list): Handle
error_mark_node.
gcc/testsuite/ChangeLog:
PR c++/99500
* g++.dg/cpp2a/concepts-err3.C: New test.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions
