[PATCH] D110255: Change error for storage-class to mean linkage, fix lang-linkage diag

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 22 07:30:30 PDT 2021


erichkeane created this revision.
erichkeane added a reviewer: aaron.ballman.
erichkeane requested review of this revision.

Allow multiversioning declarations to match when the actual formal
linkage matches, not just when the storage class is identical.
Additionally, change the ambiguous 'linkage' mismatch to be more
specific and say 'language linkage'.


https://reviews.llvm.org/D110255

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaDecl.cpp
  clang/test/SemaCXX/attr-cpuspecific.cpp
  clang/test/SemaCXX/attr-target-mv.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110255.374230.patch
Type: text/x-patch
Size: 5722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210922/7705e0cb/attachment.bin>


More information about the cfe-commits mailing list