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

[expr.sizeof] redundant wording #419

Merged
merged 1 commit into from Jan 13, 2015
Merged

Conversation

cpplearner
Copy link
Contributor

N4296 5.3.3 [expr.sizeof] says

The sizeof operator shall not be applied to an expression that has function or incomplete type, to an enumeration type whose underlying type is not fixed before all its enumerators have been declared, to the parenthesized name of such types, or to a glvalue that designates a bit-field.

Now that "an enumeration type whose underlying type is not fixed before all its enumerators have been declared" is considered as an incomplete type (7.2[dcl.enum]p6), to an enumeration type whose underlying type is not fixed before all its enumerators have been declared become redundant.

"an enumeration type whose underlying type is not fixed before all its enumerators have been declared" is an incomplete type.
zygoloid added a commit that referenced this pull request Jan 13, 2015
[expr.sizeof] Remove redundant wording
@zygoloid zygoloid merged commit c8a85fb into cplusplus:master Jan 13, 2015
@cpplearner cpplearner deleted the sizeof branch January 15, 2015 12:56
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 this pull request may close these issues.

None yet

2 participants