Fortran code test suite

Albert <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
Dear all,

Currently my main interest for Doxygen is with the Fortran part. When
using Doxygen, for Fortran, I've noticed some bugs and I've tried to
fix some bugs.
A type of bug that is quite annoying is of the form:
********************************************************************
Error in file /cygdrive/c/Users/user/AppData/Local/Temp/dg/Wall.f90
line: 14, state: 10
********************************************************************
as most of the time it is quite unclear where the problem is and can
only be found by stripping the code to the bare minimum.

I think it would be a good idea to have some sort of test suite to
test if all Fortran constructs and especially the newer ones are
covered by Doxygen.
I've been looking around the Internet and found a test suite with
gfortran / gcc. This test suite is quite large and does not only
contain correct programs but also tests to have the compiler emit
errors. For Doxygen, I think, we should concentrate on programs that
do compile (and are standard conforming).

I've only looked if the programs didn't throw an error message, I have
not looked at the results.
With the aid of this suite I did find some problems eg:
- variable with the name "type" confuses Doxygen (Doxygen thinks it is
the start of a type definition)
- construct "type is" (new since Fortran 2003) confuses Doxygen
- block data is not handled by Doxygen (existing bug 567494)
- double complex is not handled by Doxygen (this is not standard
conforming code)
- the "extends" keyword gives an error message from the file
fortrancode.l (When in the Doxyfile the option SOURCE_BROWSER = YES)
For the first 2 I'm going to submit a bug report, found for the "type
is" already a solution. The "double complex" is not standard Fortran
so I won't submit a bug report for it, users should use
complex(kind=1.0d1) or similar). For the "extends" problem I'll append
my example to bug 598481.

The reason for this email is: does anybody know more places with test
suites for Fortran that can be used to find possible problems ?

Best Regards,

Albert

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.