-
Notifications
You must be signed in to change notification settings - Fork 771
[CWG 3] P2796R0 CWG2518 Conformance requirements and #error/#warning #6120
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
Conversation
3501bab
to
7643924
Compare
99116b3
to
b3886b8
Compare
source/declarations.tex
Outdated
or the expression is evaluated in the context of a template definition, | ||
the declaration has no | ||
effect. Otherwise, | ||
%FIXME: What does it mean for a grammar term to fail? Also in [temp.res]/p6. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this text the definition of what it means for the static_assert-declaration to fail?
@jensmaurer, any thoughts? I think this seems clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's the intent: We defined "fails" here.
Note that the proposed resolution in CWG2518 marks "fails" in italics to highlight the fact this is a term definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not in italics in this PR. Also, does #6120 (comment), which made "int" into int
, makes sense if the error comment is supposed to be a reproduction of the string-literal to the static_assert
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good catch, we need to italicise fails
, thank you!
b3886b8
to
b334df6
Compare
Fixes #6085.
Fixes cplusplus/papers#1366
Fixes cplusplus/papers#1251
Fixes cplusplus/papers#675