This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54023] [C++0x][initializer list] integer type to floating type narrowing type is not producing diagnostics
- From: "ebeworld at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jul 2012 21:40:20 +0000
- Subject: [Bug c++/54023] [C++0x][initializer list] integer type to floating type narrowing type is not producing diagnostics
- Auto-submitted: auto-generated
- References: <bug-54023-4@http.gcc.gnu.org/bugzilla/>
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]