Change error for storage-class to mean linkage, fix lang-linkage diag
authorErich Keane <erich.keane@intel.com>
Wed, 22 Sep 2021 14:25:50 +0000 (07:25 -0700)
committerErich Keane <erich.keane@intel.com>
Wed, 22 Sep 2021 17:51:05 +0000 (10:51 -0700)
commit97b2f20a446e54f4354d8f950dfab62c37e6ddf4
tree0f4639b3d3983968b93d31a3f9266a8f4c596c21
parentc240169ff2e416f2652a5d3a80a83ef68ab7fa23
Change error for storage-class to mean linkage, fix lang-linkage diag

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'.
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/attr-cpuspecific.cpp
clang/test/SemaCXX/attr-target-mv.cpp