]> granicus.if.org Git - clang/commit
Fix linkage computation for local types in template functions.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 4 Jun 2013 13:43:35 +0000 (13:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 4 Jun 2013 13:43:35 +0000 (13:43 +0000)
commitec0d96f8fa33a56cf4b9ea7d63bff8c0abcdd13c
tree9bb046e7f06525dd86a5be7537d7f78ce4f5ba56
parent785f1e7e0631f34d5bbbed9d10e90d56d838f722
Fix linkage computation for local types in template functions.

Template functions (and member functions of class templates) present the same
problem as inline functions. They need to be uniqued, so we need to assign
VisibleNoLinkage linkage to types defined in them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/CodeGenCXX/linkage.cpp