Issue 134980
Summary [clang] Using std::complex suppresses warnings from -Whigher-precision-for-complex-division
Labels clang:diagnostics, false-negative
Assignees
Reporter Maetveis
    The `-Whigher-precision-for-complex-division` emitted when `-fcomplex-arithmetic=promoted` option is used and the target does not support a higher precison type is not emitted:
- for C++ `std::complex` divisions (instead of C `_Complex`)
- when including `<complex>` from libstdc++ (after https://github.com/llvm/llvm-project/pull/131477)
- when including `<complex>` from libc++ and instantiating the templated std::complex division. ([Compiler explorer link](https://godbolt.org/z/EenxbcKdP))

libstdc++ does not suppress the warning before https://github.com/llvm/llvm-project/pull/131477 because its using `/=` which is fixed by https://github.com/llvm/llvm-project/pull/131477
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to