This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54023] [C++0x][initializer list] integer type to floating type narrowing type is not producing diagnostics


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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]