[PATCH] D136554: Implement CWG2631

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 12:34:46 PST 2022


cor3ntin reopened this revision.
cor3ntin added a comment.
This revision is now accepted and ready to land.

In D136554#3982161 <https://reviews.llvm.org/D136554#3982161>, @aeubanks wrote:

> the following now produces a link error:
>
>   $ cat /tmp/a.cc
>   #include <array>
>   #include <map>
>   
>   struct S {
>           std::map<int, int> a;
>   };
>   
>   using T = std::array<S, 20>;
>   
>   class C {
>           T t{};
>   };
>   
>   int main() {
>           C c;
>   }
>   $ ./build/rel/bin/clang++ -o /dev/null /tmp/a.cc -stdlib=libc++ -fuse-ld=lld
>   ld.lld: error: undefined hidden symbol: std::__2::map<int, int, std::__2::less<int>, std::__2::allocator<std::__2::pair<int const, int>>>::map[abi:v160000]()
>   >>> referenced by a.cc
>   >>>               /tmp/a-042a0e.o:(C::C())
>   clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
> using a ToT libc++
>
> is this expected?




Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136554/new/

https://reviews.llvm.org/D136554



More information about the cfe-commits mailing list