[Bug c++/54023] [C++0x][initializer list] integer type to floating type narrowing type is not producing diagnostics
ebeworld at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 18 21:40:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54023
ebeworld <ebeworld at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from ebeworld <ebeworld at gmail dot com> 2012-07-18 21:40:20 UTC ---
forgot the curly braces.It should have been double d={i} and the compiler gives
warning: narrowing conversion of 'i' from 'int' to 'double' inside { }
[-Wnarrowing]
More information about the Gcc-bugs
mailing list