Closed
Description
Reproducer:
program test
implicit none
integer, parameter :: qp = selected_real_kind(30)
real(qp) :: qvar
qvar=1.0_qp
write(6,*)exp(qvar)
end program test
results in:
> flang-new test.f90
./test.f90:7:11: warning: exp(real(kind=16)) cannot be folded on host
write(6,*)exp(qvar)
^^^^^^^^^
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/test-81af64.o: in function `_QQmain':
FIRModule:(.text+0x87): undefined reference to `_FortranAExpF128'
flang-new: error: linker command failed with exit code 1 (use -v to see invocation)