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 630658 - Fortran reserved words
Fortran reserved words
Status: VERIFIED DUPLICATE of bug 625519
Product: doxygen
Classification: Other
Component: general
1.7.1-SVN
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-09-26 19:50 UTC by albert
Modified: 2011-11-01 11:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description albert 2010-09-26 19:50:00 UTC
I recently had a small problem with documenting a Fortran program:
Subroutine tst(ExternalName)
  character*(*) ExternalName
end

The result Doxygen page is:
  Function Documentation
  subroutine tst ( ExternalName   )  
Instead of the expected:
  Function Documentation
  subroutine tst ( character*(*)   ExternalName )  

Some small investigations lead to the fact that the lexical scanner (fortranscanner.l) does recognize the reserved word External in the argument list and does not recognizes that it is not the word ExternalName.
Changing the word to MyExternalName also gives the correct output, so it looks like that the end of the word is nor recognized correctly.
I have hardly any experience with lex (and yacc) but shouldn't read the line (222) with the ATTR_SPEC definition read EXTERNAL\> instead of EXTERNAL for this keyword. The same accounts of course for all other reserved names.
Comment 1 albert 2010-11-14 18:03:39 UTC

*** This bug has been marked as a duplicate of bug 625519 ***
Comment 2 albert 2011-11-01 11:30:34 UTC
ExternalName is seen a variable