]> granicus.if.org Git - clang/commit
Revert r359048: C++ DR2387: a variable template declared wthi
authorIlya Biryukov <ibiryukov@google.com>
Wed, 24 Apr 2019 08:50:24 +0000 (08:50 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 24 Apr 2019 08:50:24 +0000 (08:50 +0000)
commit59fef7181c504e1cd540b29109b26474f098c46f
tree6c95cbc14bf6fd42cd691138f8cc50879d9d1a8b
parentcb27266d3b1a362acd736ee802ebed8a166e2175
Revert r359048: C++ DR2387: a variable template declared wthi

The change breaks libc++ with the follwing error:

In file included from valarray:4:
.../include/c++/v1/valarray:1062:60: error: explicit instantiation declaration of 'valarray<_Tp>' with internal linkage
_LIBCPP_EXTERN_TEMPLATE(_LIBCPP_FUNC_VIS valarray<size_t>::valarray(size_t))
                                                           ^
.../include/c++/v1/valarray:1063:60: error: explicit instantiation declaration of '~valarray<_Tp>' with internal linkage
_LIBCPP_EXTERN_TEMPLATE(_LIBCPP_FUNC_VIS valarray<size_t>::~valarray())

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359076 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Decl.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/drs/dr0xx.cpp
test/CXX/drs/dr17xx.cpp
test/CXX/drs/dr23xx.cpp [deleted file]
test/CXX/module/module.interface/p3.cpp
test/CXX/module/module.interface/p5.cpp
test/CodeGenCXX/cxx1y-variable-template-linkage.cpp
test/SemaCXX/PR10177.cpp
test/SemaCXX/warn-unused-filescoped.cpp
test/SemaCXX/warn-unused-variables.cpp
www/cxx_dr_status.html