Skip to content
Snippets Groups Projects
Commit 1e0f37df authored by Patrick Palka's avatar Patrick Palka
Browse files

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.
parent 054e93b8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment