OSDN Git Service

PR middle-end/16693
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Aug 2004 20:51:02 +0000 (20:51 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Aug 2004 20:51:02 +0000 (20:51 +0000)
commit30fa03f2ed0a95cd8c43b5b5d81373f429281e06
tree9d83bd3b2e6a19b9638628f3287e9f2071b81783
parente0d844bef2f39b196bccbdde667aafa91edba7dd
PR middle-end/16693
PR tree-optimization/16372
* decl.c (finish_enum): Make the precision of the enumerated type
the same width as the underlying integer type.

* g++.dg/opt/pr16372-1.C: New test case.
* g++.dg/opt/pr16693-1.C: New test case.
* g++.dg/opt/pr16693-2.C: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86576 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr16372-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr16693-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr16693-2.C [new file with mode: 0644]