Skip to content

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.

2 participants