https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109532

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Wilhelm M from comment #5)
> So in general a scoped-enum inside a class (nested type) maybe always a bad
> idea, because it prevents optimization.

I don't know how you have drawn that conclusion or how it's related to this bug
report.

> And when specifying the underlying
> type, the -fstrict-enums can't be applied because all values of the
> underlying type are possible.

Correct, with a fixed underlying type -fstrict-enums and -fshort-enums have no
effect.

Reply via email to