After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740366 - Fortran: Inconsistent Indentation Confuses Parser
Fortran: Inconsistent Indentation Confuses Parser
Status: RESOLVED DUPLICATE of bug 625601
Product: doxygen
Classification: Other
Component: general
1.8.6
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2014-11-19 13:48 UTC by pyvelepor
Modified: 2014-11-22 11:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
files for reproducing (26.49 KB, application/x-compressed-tar)
2014-11-19 13:50 UTC, pyvelepor
Details

Description pyvelepor 2014-11-19 13:48:16 UTC
I'm not sure if this is a bug and it may be related to a previously submitted bug that's labeled as "wont-fix": https://bugzilla.gnome.org/show_bug.cgi?id=704518

I have a project with a few Fortran files where the start of some subroutine declarations is indented by 6 spaces and the end of the declarations is indented by 5 spaces. This causes the scanner to report errors on a line that is beyond the end of the file. Changing the indentation of the end statement to match that of the subroutine declaration fixes the problem. Oddly, any other indentation pattern works as expected.

I attached an tar.gz file with an example Fortran file that hopefully produces the error when parsed, my Doxyfile and the output from running doxygen on my machine.

Command used to produce error:

(cat Doxyfile ; echo "INPUT=test.F90") | doxygen -

Thanks
Comment 1 pyvelepor 2014-11-19 13:50:16 UTC
Created attachment 290997 [details]
files for reproducing

Files for reproducing error:

1. test.F90 : two-line Fortran program that confuses doxygen Fortran scanner
2. Doxyfile : my configuration file
3. doxygen-output : output of Doxygen on my machine
Comment 2 albert 2014-11-19 17:28:48 UTC
The Fortran parser sees the code as fixed formatted Fortran code and thus the End statement is not a proper End statement.
This problem has also been identified by (a.o.) bug_625601 and for this reason the EXTENSION_MAPPING in version 1.8.8 has been extended so the user can set the right code type:
EXTENSION_MAPPING      = f90=fortranfree

I think this report should be set to RESOLVED DUPLICATE
Comment 3 Dimitri van Heesch 2014-11-22 11:50:39 UTC

*** This bug has been marked as a duplicate of bug 625601 ***