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
20.10.6 [meta.rel] says "return-statement" #445
Comments
I think you mean this, from p4:
This is wrong in quite a few ways ("evaluation" and "side effect" are defined to mean something completely different from what this note is talking about, there is no such thing as a return-statement, the "as if" is noise since it's already implied for all rules in the standard, ...). How about this:
The bogus "side effects" / "evaluation" wording also appears in [temp.deduct]/8 and Table 49 in [meta.unary.prop]; we should either fix it everywhere, or preferably just refer back to [temp.deduct] for the implications of "immediate context". It'd be good to make [temp.deduct] actually define this rather than hand-wave... |
(Oops, just deleted my comment instead of editing it) I actually meant this text earlier in the paragraph, between the two code blocks:
But I agree with the other problems you spotted, and your suggested fixes. |
The "immediate context" phrasing, including the note, has spawned throughout [meta], it seems. |
Drop the duplicated notes explaining ill-formed specializations in other than the immediate context. Fixes cplusplus#445.
Drop the duplicated notes explaining ill-formed specializations in other than the immediate context. Fixes cplusplus#445. Fixes cplusplus#272.
Drop the duplicated notes explaining ill-formed specializations in other than the immediate context. Fixes cplusplus#445. Fixes cplusplus#272.
Drop the duplicated notes explaining ill-formed specializations in other than the immediate context. Fixes cplusplus#445. Fixes cplusplus#272.
The "immediate context" concerns are covered by LWG 2290 "Top-level "SFINAE"-based constraints should get a separate definition in Clause 17". |
#1252 fixes [temp.deduct] to avoid "side effect" and "evaluation". |
Should probably be "return statement"
The text was updated successfully, but these errors were encountered: