Bummer, can't debug ieee_selected_real_kind
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Dec 30 17:09:00 GMT 2018
On Sun, Dec 30, 2018 at 03:39:04PM +0100, Thomas Koenig wrote:
>
> > It seems someone hase broken the ability to use a debugger
> > with f951 if the Fortran includes 'use ieee_arithmetic'
>
> I can reproduce the problem :-(
>
> While it is not perfect, you could use
>
> (gdb) r -I /home/ig25/lib/gcc/x86_64-pc-linux-gnu/9.0.0/finclude ieee.f90
>
> where /home/ig25 is your $(PREFIX) to get the compiler to run, at
> least. And yes, this is a pain.
Still doesn't work.
(gdb) run -I/usr/home/kargl/work/lib/gcc/i586-unknown-freebsd13.0/9.0.0/finclude a.f90
Starting program: /usr/home/kargl/work/libexec/gcc/i586-unknown-freebsd13.0/9.0.0/f951 -I/usr/home/kargl/work/lib/gcc/i586-unknown-freebsd13.0/9.0.0/finclude a.f90
a.f90:7:29:
7 | integer, parameter :: a1 = ieee_selected_real_kind(p = 6_2)
| 1
Error: Function 'ieee_selected_real_kind' in initialization expression at (1) must be an intrinsic function
:( I've resorted to printf() statements in simplify_ieee_selected_real_kind.
--
Steve
More information about the Fortran
mailing list