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 572736 - Fortran: specification expression in function result truncated
Fortran: specification expression in function result truncated
Status: RESOLVED DUPLICATE of bug 565715
Product: doxygen
Classification: Other
Component: general
1.5.8
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-02-22 13:00 UTC by Daniel Franke
Modified: 2011-11-01 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Franke 2009-02-22 13:00:09 UTC
Fortran allows specification expressions, i.e. non-constant scalar integer expressions, to specify array bounds. This may e.g. used to compute the length of a string returned as a function result. A function defined as:

  !> @brief The suffix of a file.
  FUNCTION suffix(filename)
    CHARACTER(len=*), INTENT(in) :: filename
    CHARACTER(len=LEN_TRIM(filename) - INDEX(filename, '.', .TRUE.)) :: suffix
    suffix = [...]
  END FUNCTION

results in this documentation snippet:
  CHARACTER(len=LEN_TRIM(filename)   suffix (filename)
                                     The suffix of a file. 

Here, the LEN=... expression is incomplete. The same holds for the detailed view when available.

Instead of replicating the full expression in the brief-list, I'd suggest to replace specification expressions with '...' (here, "CHARACTER(len=...) suffix") and only print the full expression in the detailed view as such expression may be arbitrarily long.
Comment 1 Daniel Franke 2010-02-26 21:44:15 UTC

*** This bug has been marked as a duplicate of bug 565715 ***
Comment 2 albert 2011-11-01 13:19:07 UTC
Works with fix of bug565715
I cannot set this bug to verified though as I'm not entitled to do this.