[llvm-bugs] [Bug 19747] Crash when initializing more than one member of a union via designated initializer

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 23 15:45:00 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=19747

Alexander Kornienko <alexfh at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |alexfh at google.com
             Status|NEW                         |RESOLVED

--- Comment #1 from Alexander Kornienko <alexfh at google.com> ---
Not reproducible now:

$ clang -c /tmp/q.cc 
/tmp/q.cc:4:35: warning: initializer overrides prior initialization of this
subobject [-Winitializer-overrides]
     A a[1] = { { .b = 0 }, [0] = { 0 } };
                                  ^~~~~
/tmp/q.cc:4:17: note: previous initialization is here
     A a[1] = { { .b = 0 }, [0] = { 0 } };
                ^~~~~~~~~~
1 warning generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190423/fd634530/attachment.html>


More information about the llvm-bugs mailing list