re PR c++/48536 ([C++0x] Automatic Enumerator Incrementation is not compliant with...
authorJason Merrill <jason@redhat.com>
Thu, 26 May 2011 02:23:02 +0000 (22:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 26 May 2011 02:23:02 +0000 (22:23 -0400)
commit265133917c2cc24309c97b0836007742407469a0
treee67f36fe735543b104f9dc811c2c3459aae0d708
parent5df0c0c767de7cc44474504d0de8e15ac96c97b9
re PR c++/48536 ([C++0x] Automatic Enumerator Incrementation is not compliant with Clause 7.2/5)

PR c++/48536
* decl.c (build_enumerator): If incremented enumerator won't fit in
previous integral type, find one it will fit in.

From-SVN: r174258
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum17.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.jason/rfg10.C