https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91950
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > (In reply to Eric Gallager from comment #2) > > I think this is actually a dup of another bug that asked the same thing, but > > I forget its number... > > There are dozens of them, because nobody understands how enums work in C++. > > I keep meaning to write a FAQ entry. I filed PR 107764 at least to add the FAQ to GCC's documentation.