]> granicus.if.org Git - clang/commit
Sema: Implement DR317
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 30 Mar 2014 06:44:54 +0000 (06:44 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 30 Mar 2014 06:44:54 +0000 (06:44 +0000)
commit168458085b712ab0b921433fcb24d12d0f882d63
tree61455b84326a53ac340ed43975d53ef1ea3c3ed8
parent01469d8044aacf99f19d1dbaf8e3bdbd84172776
Sema: Implement DR317

Summary:
Declaring a function as inline after it has been defined is in violation
of [dcl.fct.spec]p4.  The program would get a strong definition instead
of getting a function with linkonce_odr linkage.

Reviewers: rsmith

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D3220

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205129 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclCXX.cpp
test/CXX/drs/dr3xx.cpp
test/Parser/cxx-friend.cpp
test/SemaTemplate/inject-templated-friend-post.cpp
test/SemaTemplate/inject-templated-friend.cpp
www/cxx_dr_status.html