This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24965] Wrong file name in error message
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2007 03:27:08 -0000
- Subject: [Bug fortran/24965] Wrong file name in error message
- References: <bug-24965-7427@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-06-03 03:27 -------
The Comment #3 example is not the same as the original report. The attached
example is already preprocessed source with file name information embedded in
lines beginning with '#'
This is handled in scanner.c. The filenames are being extracted properly in
the function preprocessor_line(). The filename information is not getting into
the scanners gfc_line and gfc_file structures correctly. I would guess it
needs to fixed around about line 1492 of scanner.c. Looks like we are just not
doing anything with it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24965