Apply attributes on anonymous records.
This Fixes https://bugs.llvm.org/show_bug.cgi?id=43983.
Details
Details
- Reviewers
rsmith aaron.ballman dblaikie
Diff Detail
Diff Detail
Event Timeline
clang/lib/Sema/SemaDecl.cpp | ||
---|---|---|
5039 | Should we apply the attributes to the variable in this case, or (if they're always syntactically invalid) assert that there aren't any? |
Comment Actions
LGTM!
clang/test/AST/pr43983.cpp | ||
---|---|---|
2 | You can drop the -std=c++11 here (we default to > c++11 anyway). |
Comment Actions
removed c++11 from the test.
I do not have commit access, Can someone commit this for me?
Comment Actions
Thank you for the patch! I've commit on your behalf in 304d1304b7bac190b6c9733eb07be284bfc17030
Should we apply the attributes to the variable in this case, or (if they're always syntactically invalid) assert that there aren't any?