This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/56158] bad enum values computed by operator~ in ios_base.h
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Nov 2015 18:54:45 +0000
- Subject: [Bug libstdc++/56158] bad enum values computed by operator~ in ios_base.h
- Auto-submitted: auto-generated
- References: <bug-56158-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56158
--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. we could also get rid of the _S_ios_xxx_end enumerators, but that would
break any code which (foolishly) refers to them, e.g. to suppress Clang's
-Wswitch warnings.
My suggestion assumes that __INT_MAX__ > (1 << 16), i.e. the compiler really
will choose int as the underlying type, but I think that's OK.