vsapsai planned changes to this revision.
vsapsai added a comment.
In discussions outside of this review the consensus is that "warning: ambiguous
use of internal linkage declaration" is correct, so I won't change anything for
C++. For Objective-C I still need to find a way to handle anonymous e
vsapsai added a subscriber: Bigcheese.
vsapsai added a comment.
Adding Michael who is infinitely better than me in C++.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114833/new/
https://reviews.llvm.org/D114833
vsapsai added a comment.
As I was trying to replicate C++ behavior I've created a test case
ambiguous-anonymous-enum-lookup.cpp. And it results in diagnostics
clang/test/Modules/Output/ambiguous-anonymous-enum-lookup.cpp.tmp/test.cpp:6:10:
warning: ambiguous use of internal linkage declarati
vsapsai updated this revision to Diff 391189.
vsapsai added a comment.
Attempt to restore a previous commit.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114833/new/
https://reviews.llvm.org/D114833
Files:
clang/lib/Sema/SemaDecl.cpp
clang/te
vsapsai updated this revision to Diff 391187.
vsapsai added a comment.
Add a test case for referencing an anonymous enum constant in C++.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114833/new/
https://reviews.llvm.org/D114833
Files:
clang/tes
vsapsai added a comment.
After more testing and thinking I've realized we are still not handling
anonymous enums properly. On one hand anonymous EnumDecl aren't duplicates and
we aren't making a hidden EnumDecl + EnumConstantDecl visible and don't have
ambiguity problems. On the other hand, whe
vsapsai added inline comments.
Comment at: clang/lib/Sema/SemaDecl.cpp:16216-16223
if (!getLangOpts().CPlusPlus) {
// Postpone making the old definition visible until after we
// complete parsing the new one and do the struct
vsapsai created this revision.
vsapsai added reviewers: bruno, jansvoboda11, rsmith.
Herald added a subscriber: ributzka.
vsapsai requested review of this revision.
Herald added a project: clang.
Fix errors like
clang/test/Modules/redefinition-c-tagtypes.m:36:10: error: reference to 'FST'
is a