re PR c++/12242 (g++ should warn about out-of-range int->enum conversions)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 9 Aug 2008 00:30:41 +0000 (00:30 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 9 Aug 2008 00:30:41 +0000 (00:30 +0000)
commitb13e752fd50ce3c0084d0e4392280d8290bf1c3d
tree1a4421253e39d8a04c7c0e7d3bf749563fa6341d
parent97679e5f65218a9f6cef39b194f7845bba8bf90b
re PR c++/12242 (g++ should warn about out-of-range int->enum conversions)

2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c++/12242
cp/
* cvt.c (ocp_convert): Warn for out-of-range conversions to enum.

testsuite/
* g++.dg/warn/pr12242.C: New.

From-SVN: r138898
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr12242.C [new file with mode: 0644]