[PATCH] D58216: Support attribute used in member funcs of class templates II
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 6 12:55:59 PST 2019
aaron.ballman added a comment.
In D58216#1420149 <https://reviews.llvm.org/D58216#1420149>, @rafauler wrote:
> Both approaches make sense to me. I'll re-land the previous patch in favor of gcc compatibility, since the semantics of attribute used in member functions of class templates were first implemented in gcc.
I think we should be compatible with GCC here.
> @davezarzycki Heads up that this will land again. Can you change the code in swift to use the attribute used in the declaration of the specialization, not in the declaration of the template? (that is, if you really need the attribute, of course).
I know very little about the Swift code base. Can it compile with GCC? If it can, then I think something is missing from the test case. If it can't compile with GCC, then I'm guessing the attribute was effectively a noop before and can be removed.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58216/new/
https://reviews.llvm.org/D58216
More information about the cfe-commits
mailing list