[Bug c++/66007] [5 Regression] Narrowing conversion inside { } results in all zero elements in C++11 mode
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 4 14:34:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66007
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
I cannot reproduce this on today's 5 branch:
markus@x4 tmp % echo 'int foo[] = { 1, 0xFFFFFFFF, 3 };' | g++ -S -x c++ - -o -
-std=c++11 -Wno-narrowing
.file ""
.globl foo
.data
.align 8
.type foo, @object
.size foo, 12
foo:
.long 1
.long -1
.long 3
.ident "GCC: (GNU) 5.1.1"
.section .note.GNU-stack,"",@progbits
More information about the Gcc-bugs
mailing list