[flang-commits] [flang] [flang] fix flang builds with clang 20 after #100692 (PR #106718)
David Truby via flang-commits
flang-commits at lists.llvm.org
Fri Aug 30 07:11:00 PDT 2024
DavidTruby wrote:
I agree it should be resolvable, but I think what's happening is after resolving all the templates:
```
template< class T >
std::complex<T> pow( const std::complex<T>& x, const std::complex<T>& y );
```
and
```
template< class T1, class T2 >
std::complex<std::common_type_t<T1, T2>>
pow( const std::complex<T1>& x, const std::complex<T2>& y );
```
have the same type, since `std::common_type_t<T, T> == T`. I might be wrong and the issue is somewhere else though!
https://github.com/llvm/llvm-project/pull/106718
More information about the flang-commits
mailing list