[PATCH] D59754: [Sema] Add c++2a designated initializer warnings

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 12:09:30 PDT 2019


leonardchan added a comment.

Hi! We've noticed that for our arm bots, we're getting some flaky builds that sometimes fail with `error: array designators are a C99 extension [-Werror,-Wc99-designator]` and sometimes don't fail. 2 questions:

1. I can't see it off the patch immediately, but do you know why for arm specifically we can only get this warning sometimes?
2. I noticed that for the `test/SemaCXX/c99.cpp` test, this warning is also diagnosed for the `-std=c++17` case. Are C-style designated initializers only invalid in c++20, or are they also invalid in 17?

Thanks.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59754/new/

https://reviews.llvm.org/D59754





More information about the cfe-commits mailing list