[PATCH] D63260: [Attr] Support _attribute__ ((fallthrough))
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 11:20:05 PDT 2019
efriedma added inline comments.
================
Comment at: test/Sema/address_spaces.c:12
{
- _AS2 *x;// expected-warning {{type specifier missing, defaults to 'int'}}
+ _AS2 *x;// expected-error {{use of undeclared identifier 'x'}}
_AS1 float * _AS2 *B;
----------------
xbolva00 wrote:
> I think this is an acceptable change..
This is scary. gcc and clang both parse `void f() { __attribute((aligned)) *x; }` etc. as a declaration; I don't think we want to change that, even if that usage is a bit dubious in modern C. And it's not clear to me if there are other implications here; does this affect the handling of statement/declaration ambiguity in C++?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63260/new/
https://reviews.llvm.org/D63260
More information about the cfe-commits
mailing list