[Bug fortran/46327] type field access by . (instead of %) unsupported

jan.kratochvil at redhat dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 6 07:18:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46327

--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2010-11-06 07:18:24 UTC ---
(In reply to comment #3)
> If they need to debug their code, then they should use Intel's debugger.

That is less comfortable for them than GDB.


(In reply to comment #4)
> Fortran code --> ifort --> gdb
> Fortran code --> gfortran --> gdb
> 
> I simply fail to see why gfortran needs to support the dot syntax.

As otherwise users use iFort which has various DWARF incompatibilities needing
to be thus supported by gdb, iFort does not support build-id and other GNU
features so it is difficult to workaround all the iFort issues with the GNU
toolchain around.

> This seems to be a purely gdb issue.

You are right GDB should also support it.  That is not targeted by this Bug.

(gdb) p q.a
A syntax error in expression, near `.a'.
(gdb) p q%a
$3 = 3


> Do you want to support ifort syntax or not?

'.' is not an iFort syntax, it is some legacy Fortran syntax.
Yes, I would like gfortran to support the '.' syntax.



More information about the Gcc-bugs mailing list