Open
Description
Minimal Reproducible Example
program main
implicit none
real :: var = 123.45
print '(d0.0)', var
end program main
Output
(lf) saurabh-kumar@Awadh:~/Projects/System/lfortran$ gfortran test.f90 && ./a.out
At line 5 of file test.f90 (unit = 6, file = 'stdout')
Fortran runtime error: Scale factor out of range in format specifier 'E' or 'D'
Error termination. Backtrace:
#0 0x708b5fc23e59 in ???
#1 0x708b5fc24a71 in ???
#2 0x708b5fc256dc in ???
#3 0x708b5fec7041 in ???
#4 0x708b5fecb010 in ???
#5 0x708b5febdf97 in ???
#6 0x708b5febe592 in ???
#7 0x5631db07a1f5 in ???
#8 0x5631db07a240 in ???
#9 0x708b5f82a3b7 in __libc_start_call_main
at ../sysdeps/nptl/libc_start_call_main.h:58
#10 0x708b5f82a47a in __libc_start_main_impl
at ../csu/libc-start.c:360
#11 0x5631db07a0b4 in ???
#12 0xffffffffffffffff in ???
(lf) saurabh-kumar@Awadh:~/Projects/System/lfortran$ lfortran test.f90
0.123449997D+3