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

[except.throw] doesn't specify the type of the lvalue denoting the exception object #5091

Closed
languagelawyer opened this issue Nov 6, 2021 · 1 comment · Fixed by #5092
Closed
Assignees

Comments

@languagelawyer
Copy link
Contributor

[except.throw]/3:

Throwing an exception copy-initializes a temporary object, called the exception object.
An lvalue denoting the temporary is used to initialize the variable declared in the matching handler ([except.handle]).

Is there any wording defining the type of this lvalue? Also, https://timsong-cpp.github.io/cppwp/except.handle#14 is worded in terms of initialization from object, not expression. Does it need a separate issue?

@jensmaurer
Copy link
Member

At least [expr.throw] clearly says what the type of the exception object is. Can you find other situations where we fail to say what the type of the exception object is?

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

Successfully merging a pull request may close this issue.

2 participants