https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123361

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC is correct and in good company with EDG, clang and MSVC all producing a
narrowing conversion error or warning. clang diagonstic is maybe the best:
<source>:7:20: error: non-constant-expression cannot be narrowed from type
'int' to 'double' in initializer list [-Wc++11-narrowing]

Reply via email to