http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53993
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |wrong-debug Last reconfirmed| |2012-07-17 CC| |burnus at gcc dot gnu.org Ever Confirmed|0 |1 Summary|gfortran ignores file part |gfortran ignores file part |of #line directives |of #line directives for | |debugging --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-17 11:55:40 UTC --- Confirmed. For diagnostic output, the file name is taken into account, but not for generating debug info. That the diagnostic part is okay, can be seen when making the test case invalid, but also when looking at the code generated by -fdump-tree-original-lineno (the correct file name is passed to the I/O library). In principle, it is handled via gcc/fortran/scanner.c's preprocessor_line(). The question is why it only works partially.