Title
sizeof with opaque enumerations
Status
dup
Section
7.6.2.5 [expr.sizeof]
Submitter
Alberto Ganesh Barbati

Created on 2009-03-09.00:00:00 last changed 188 months ago

Messages

Date: 2009-05-15.00:00:00

Rationale (May, 2009):

Duplicate of issue 803.

Date: 2022-11-20.07:54:16

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.

History
Date User Action Args
2009-06-19 00:00:00adminsetmessages: + msg2133
2009-06-19 00:00:00adminsetstatus: open -> dup
2009-03-09 00:00:00admincreate