[Bug c++/96452] Narrowing conversion is not rejected

antoshkka at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 4 11:53:42 GMT 2020


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

--- Comment #5 from Antony Polukhin <antoshkka at gmail dot com> ---
Hm... My reading of http://eel.is/c++draft/dcl.init.list#3.9 is that the
program is ill-formed for narrowing conversions. And
http://eel.is/c++draft/dcl.init.list#7.2 states that conversion from double to
float is a narrowing one, except where the source is a constant expression.

Am I missing something?


More information about the Gcc-bugs mailing list