aeubanks added a comment.

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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to