On Wed, Oct 30, 2024 at 09:58:56PM +0000, Jonathan Wakely wrote: > I suppose the "not implicitly convertible to an integer" rule for > scoped enums is just a language constraint, the compiler sees scoped > enumerations like any other integral value.
Sure. This is used in the middle-end and for it the argument has just
ENUMERAL_TYPE, nothing cares if scoped or not. In fact right now all that
the compiler checks is if an INTEGER_CST is passed to that argument
and then just uses its value.
Jakub
