[PATCH] D153835: [Sema] Clone VisibilityAttr for functions in template instantiations
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 7 11:20:18 PDT 2023
rjmccall requested changes to this revision.
rjmccall added a comment.
This revision now requires changes to proceed.
We made a decision ten years or so ago to use a slightly different interpretation of the visibility attributes, so differences from GCC are not by themselves unexpected or problematic. In this case, I'm not sure I agree that it's a bug that an attribute on an explicit class template instantiation overrides attributes on member functions in the template pattern. Even if we decide to adopt a new rule here, though, I agree with Eli that this seems like a very heavy-handed way of implementing it; basically every line in this patch seems to be impactful in ways that are hard to anticipate.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153835/new/
https://reviews.llvm.org/D153835
More information about the cfe-commits
mailing list