Date
2022-11-20.07:54:16
Message id
1980

Content

7.6.2.5 [expr.sizeof] paragraph 1 says,

The sizeof operator shall not be applied... to an enumeration type before all its enumerators have been declared...

This prevents use of sizeof with an opaque enumeration type, even though the underlying type of such enumerations is known.