Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[over.call.object] Note has counterfactual statement re: surrogate functions and overload resolution #5541

Open
hubert-reinterpretcast opened this issue Jun 26, 2022 · 0 comments

Comments

@hubert-reinterpretcast
Copy link
Contributor

In N4910 [over.call.object] paragraph 3, note 1 (in part) says:

The conversion function from which the surrogate call function was derived will be used in the conversion sequence for that parameter since it converts the implied object argument to the appropriate function pointer or reference required by that first parameter.

This is not true. Overload resolution can prefer a different conversion operator because the conversion function from which the surrogate call function was derived is not the best viable function. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81547.

@hubert-reinterpretcast hubert-reinterpretcast changed the title [over.call.object] Counterfactual statement re: surrogate functions and overload resolution [over.call.object] Note has counterfactual statement re: surrogate functions and overload resolution Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant