PR82943: debugging syntax error using Fortran specification

Jerry DeLisle jvdelisle@charter.net
Sun Dec 31 05:36:00 GMT 2017


On 12/30/2017 05:47 PM, Darrell Reich via fortran wrote:
> It was suggested I debug this by searching for the error message and setting a breakpoint. However, the error messages are generated by combining strings together so I was unable to find the message below. I did successfully get a backtrace from the breakpoint in errors.c:print_error—is this helpful? Since it is a syntax error that works with Intel Fortran, it is no surprise that the compiler is in the parse stage.
> 


I use for debug:

gdb ~/dev/usr/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/f951

and then:

(gdb) r pr82943.f03      <--- the name I gave the test case.

Grepping sometimes takes a little eyeballing.

Probably one of these two places.

$ grep "must be of" *.c

.
.
.

resolve.c:13254:	  gfc_error ("Argument %qs of %qs with PASS(%s) at %L must be of"
resolve.c:13664:          gfc_error ("Argument %qs of %qs with PASS(%s) at %L
must be of"

.
.
.



More information about the Fortran mailing list