[PATCH] D147626: [clang] Reject flexible array member in a union in C++
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 2 07:19:51 PDT 2023
aaron.ballman added inline comments.
================
Comment at: clang/test/SemaObjCXX/flexible-array.mm:7
int s;
- char c[];
+ char c[]; //expected-error {{flexible array member 'c' in a union is not allowed}}
};
----------------
CC @rjmccall -- this is changing Objective-C++ behavior, which I assume you're fine with because it's following the same changes in C++ behavior, but wanted to call out explicitly in case you had concerns.
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