llvm-project/libcxx/lib
Richard Smith de329354aa Remove incorrect explicit instantiation declarations for valarray
libc++ ABI v1 provides three valarray symbols as part of the shared library:

valarray<size_t>::valarray(size_t)
valarray<size_t>::~valarray()
valarray<size_t>::resize(size_t, size_t)

The first two of these are intended to be removed in V2 of the ABI: they're
attributed _LIBCPP_HIDE_FROM_ABI_AFTER_V1, and  it appears that the intention
is that these symbols from the library are not used even when building using
the V1 ABI. However, there are explicit instantiation declarations for all
three symbols in the header, which are not correct as we do not intend to find
an instantiation of these functions that is provided elsewhere.

(A recent change to clang to properly diagnose explicit instantiation
declarations of internal linkage functions -- required by [temp.explicit]p13 --
had to be rolled back because it diagnosed these explicit instantiations.)

Remove the explicit instantiation declarations, and remove the explicit
instantiation definitions for V2 of the libc++ ABI onwards.

llvm-svn: 359243
2019-04-25 21:31:58 +00:00
..
abi Remove incorrect explicit instantiation declarations for valarray 2019-04-25 21:31:58 +00:00
CMakeLists.txt [libcxx] Update gen_link_script.py to support different input and output 2019-04-22 19:51:33 +00:00
libc++abi-new-delete.exp [libc++] Update the list of symbols exported from libc++abi for new/delete 2019-03-22 20:18:17 +00:00
libc++abi.v1.exp [libc++][CMake] Clean up some of the libc++ re-exporting logic 2019-03-20 18:16:24 +00:00
libc++abi.v2.exp [libc++] Make sure we re-export some missing libc++abi symbols from libc++ 2019-04-18 17:18:15 +00:00
libc++sjlj-abi.v1.exp [libc++][CMake] Clean up some of the libc++ re-exporting logic 2019-03-20 18:16:24 +00:00
libc++sjlj-abi.v2.exp [libc++] Re-export the sjlj ABI v2 for ARM architectures 2019-03-22 19:38:53 +00:00
libc++unexp.exp
notweak.exp
weak.exp