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++/66007] [5 Regression] Narrowing conversion inside { } results in all zero elements in C++11 mode


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


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