diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2019-04-24 08:50:24 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2019-04-24 08:50:24 +0000 |
| commit | b8292c955c81961171b097d9229663f915e5c26c (patch) | |
| tree | 364cec9dfb887b07798214b9bd4caf6593d04f99 /clang/test/CXX/module/module.interface/p5.cpp | |
| parent | 40f8f7f95c1b200117981b231b9a1902b31ea9a8 (diff) | |
| download | bcm5719-llvm-b8292c955c81961171b097d9229663f915e5c26c.tar.gz bcm5719-llvm-b8292c955c81961171b097d9229663f915e5c26c.zip | |
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())
llvm-svn: 359076
Diffstat (limited to 'clang/test/CXX/module/module.interface/p5.cpp')
| -rw-r--r-- | clang/test/CXX/module/module.interface/p5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/module/module.interface/p5.cpp b/clang/test/CXX/module/module.interface/p5.cpp index 17c4105baa0..c4299dc04fb 100644 --- a/clang/test/CXX/module/module.interface/p5.cpp +++ b/clang/test/CXX/module/module.interface/p5.cpp @@ -14,7 +14,7 @@ static union { int sg1, sg2; }; // expected-note {{target}} namespace NS {} template<typename> int ta; -template<typename> static int sta; // expected-note {{target}} +template<typename> static int sta; template<typename> void tb(); template<typename> static void stb(); // expected-note {{target}} template<typename> struct tc {}; @@ -44,7 +44,7 @@ namespace UnnamedNS { } } -export { // expected-note 19{{here}} +export { // expected-note 18{{here}} using ::a; using ::sa; // expected-error {{using declaration referring to 'sa' with internal linkage}} using ::b; @@ -56,7 +56,7 @@ export { // expected-note 19{{here}} using ::sg1; // expected-error {{using declaration referring to 'sg1' with internal linkage}} using ::ta; - using ::sta; // expected-error {{using declaration referring to 'sta' with internal linkage}} + using ::sta; // FIXME {{using declaration referring to 'sta' with internal linkage}} using ::tb; using ::stb; // expected-error {{using declaration referring to 'stb' with internal linkage}} using ::tc; |

