PR 12242 g++ should warn about out-of-range int->enum conversions

Mark Mitchell mark@codesourcery.com
Sat Aug 9 00:58:00 GMT 2008


Manuel López-Ibáñez wrote:

> 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
> 
> 	PR 12242
> cp/
> 	* cvt.c (ocp_convert): Warn for out-of-range conversions to enum.
> 
> testsuite/
> 	* g++.dg/warn/pr12242.C: New.

OK, thanks.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list