This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66007] [5 Regression] Narrowing conversion inside { } results in all zero elements in C++11 mode
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 May 2015 14:34:49 +0000
- Subject: [Bug c++/66007] [5 Regression] Narrowing conversion inside { } results in all zero elements in C++11 mode
- Auto-submitted: auto-generated
- References: <bug-66007-4 at http dot gcc dot gnu dot org/bugzilla/>
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