c++: constrained surrogate call functions [PR110535]
We weren't checking constraints on pointer/reference-to-function conversion functions during overload resolution, which caused us to ICE on the first testcase and reject the second testcase. PR c++/110535 gcc/cp/ChangeLog: * call.cc (add_conv_candidate): Check constraints. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/concepts-surrogate1.C: New test. * g++.dg/cpp2a/concepts-surrogate2.C: New test.
Showing
- gcc/cp/call.cc 8 additions, 0 deletionsgcc/cp/call.cc
- gcc/testsuite/g++.dg/cpp2a/concepts-surrogate1.C 12 additions, 0 deletionsgcc/testsuite/g++.dg/cpp2a/concepts-surrogate1.C
- gcc/testsuite/g++.dg/cpp2a/concepts-surrogate2.C 14 additions, 0 deletionsgcc/testsuite/g++.dg/cpp2a/concepts-surrogate2.C
Loading
Please register or sign in to comment