OSDN Git Service

PR c++/43680
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2010 21:16:40 +0000 (21:16 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:38:00 +0000 (14:38 +0900)
commit352e957ef4f7f37feae2777b343e458a53de5299
tree4ccd40685a95be0b0dd8e99c1c4834b30406f704
parent97f26d1af735108cf00d51be5ce344ac62232ea9
PR c++/43680
gcc:
* c.opt (-fstrict-enums): New.
* doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
gcc/cp:
* decl.c (finish_enum): Use the TYPE_MIN_VALUE and TYPE_MAX_VALUE
from the selected underlying type unless -fstrict-enums.  Set
ENUM_UNDERLYING_TYPE to have the restricted range.
* cvt.c (type_promotes_to): Use ENUM_UNDERLYING_TYPE.
* class.c (check_bitfield_decl): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159006 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog