[llvm-bugs] [Bug 49020] Allowing brace elision even with desgnated initializers
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 3 14:42:52 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49020
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed By Commit(s)| |b15cbaf5a03d0b32dbc32c37766
| |e32ccf66e6c87
Resolution|--- |FIXED
Status|CONFIRMED |RESOLVED
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
We now diagnose this by default, but continue to accept as an extension by
default (except in SFINAE / overload resolution cases where it would be
non-conforming).
<stdin>:14:8: warning: brace elision for designated initializer is a C99
extension [-Wc99-designator]
C c{.a=42, .b={12}};
^~
{ }
--
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/20210203/b63465c6/attachment.html>
More information about the llvm-bugs
mailing list