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

[temp.deduct.general]/p7 should exclude exception specifications CWG2618 #5129

Closed
cmeerw opened this issue Nov 27, 2021 · 1 comment · Fixed by #5984
Closed

[temp.deduct.general]/p7 should exclude exception specifications CWG2618 #5129

cmeerw opened this issue Nov 27, 2021 · 1 comment · Fixed by #5984
Assignees

Comments

@cmeerw
Copy link
Contributor

cmeerw commented Nov 27, 2021

[temp.deduct.general]/p7 currently says

The substitution occurs in all types and expressions that are used in the function type and in template parameter declarations.

This should exclude exceptions specifications (since C++17) as we have a note saying:

The equivalent substitution in exception specifications is done only when the noexcept-specifier is instantiated, at which point a program is ill-formed if the substitution results in an invalid type or expression.

Should p7 also mention the "explicit-specifier" as p8 then does?

Only invalid types and expressions in the immediate context of the function type, its template parameter types, and its explicit-specifier can result in a deduction failure.

@jensmaurer jensmaurer self-assigned this Nov 27, 2021
@jensmaurer jensmaurer changed the title [temp.deduct.general]/p7 should exclude exception specifications [temp.deduct.general]/p7 should exclude exception specifications CWG2618 Aug 27, 2022
@jensmaurer
Copy link
Member

CWG2618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants