[PATCH] D136554: Implement CWG2631

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 10:48:04 PST 2022


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



More information about the cfe-commits mailing list