Issue 152125
Summary arm64-apple-macosx15.0.0: Undefined __divdc3 used by complex dvision
Labels new issue
Assignees
Reporter stbergmann
    At least when building with recent LLVM trunk (towards LLVM 22) on macOS 15.6 (24G84) against Xcode 16.4 (16F6):
```
$ cat test.cc
#include <complex>
#include <iostream>
std::complex<double> div(std::complex<double> a, std::complex<double> b) {
    return a / b;
}
int main() {
    std::cout << div({1, 2}, {3, 4}) << '\n';
}
```
```
$ ~/llvm/inst/bin/clang++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk test.cc
Undefined symbols for architecture arm64:
  "___divdc3", referenced from:
      std::__1::complex<double> std::__1::operator/[abi:de220000]<double, 0>(std::__1::complex<double> const&, std::__1::complex<double> const&) in test-c3cfce.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to