]> granicus.if.org Git - clang/commit
Retain previous language linkage of friend function declarations
authorAlp Toker <alp@nuanti.com>
Tue, 22 Oct 2013 22:53:01 +0000 (22:53 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 22 Oct 2013 22:53:01 +0000 (22:53 +0000)
commita8a2ebe9e729f69dc5775dee33cde1d5067a880a
tree82cedcbd8e7f5ae1dc3a6441706774e765a3e8f4
parent69170e6e41e72c84fe5303540c1aa7ca9944ff18
Retain previous language linkage of friend function declarations

With this extension, friend function declarations will retain the language
linkage specified for previous declarations instead of emitting an error
diagnostic.

The feature is known to be compatible with GCC and MSVC and permits a
language to be specified indirectly where it cannot otherwise be written
directly in class scope.

Work is ongoing to improve linkage spec diagnostics.

Fixes PR17337.

Reviewed by Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193206 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaCXX/linkage-spec.cpp