[PATCH] D145486: [clang] Fix single-element array initialization in constexpr

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 7 05:35:49 PST 2023


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM, thank you for this! Please be sure to file an issue to backport this to the 16.x branch (https://llvm.org/docs/GitHub.html#backporting-fixes-to-the-release-branches).



================
Comment at: clang/test/SemaCXX/constexpr-single-element-array.cpp:3-6
+/// This test makes sure that single element array in constexpr doesn't produce
+/// spurious errors.
+
+/// expected-no-diagnostics
----------------
Minor rewording and removing the extra `/` in the comment.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145486



More information about the cfe-commits mailing list