c++: Fix error-recovery with concepts.
Here, push_tinst_level refused to push into the scope of Foo::Foo because it was triggered from the ill-formed function fun. But we didn't check the return value and tried to pop the un-pushed level. PR c++/93551 * constraint.cc (satisfy_declaration_constraints): Check return value of push_tinst_level.
Showing
gcc/testsuite/g++.dg/cpp2a/concepts-err1.C
0 → 100644
Please
register
or
sign in
to comment