[PATCH] D147626: [clang] Reject flexible array member in a union in C++

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 3 10:49:45 PDT 2023


efriedma added a comment.

> If there's not indications of this being disruptive on non-MSVC-compatible targets, then we may still be able to get away with rejecting the extension there.

If we need to have the codepath anyway, there isn't much harm in allowing it on all targets, I think.  There's really only one possible interpretation for the construct.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147626



More information about the cfe-commits mailing list