[Bug libstdc++/56158] bad enum values computed by operator~ in ios_base.h
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 25 16:12:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56158
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Nov 25 16:11:40 2015
New Revision: 230884
URL: https://gcc.gnu.org/viewcvs?rev=230884&root=gcc&view=rev
Log:
Extend valid values of iostream bitmask types
Backport from mainline
2015-11-12 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/56158
* include/bits/ios_base.h (_Ios_Fmtflags, _Ios_Openmode, _Ios_Iostate):
Define enumerators to ensure all values of type int are valid values
of the enumeration type.
* testsuite/27_io/ios_base/types/fmtflags/case_label.cc: Add new cases.
* testsuite/27_io/ios_base/types/iostate/case_label.cc: Likewise.
* testsuite/27_io/ios_base/types/openmode/case_label.cc: Likewise.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/bits/ios_base.h
branches/gcc-5-branch/libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc
More information about the Gcc-bugs
mailing list