http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53175

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2012-05-02
                 CC|                            |burnus at gcc dot gnu.org
     Ever Confirmed|0                           |1
            Summary|Fortran 4.8 undefined       |[4.8 Regression] link
                   |reference to a variable in  |failure for private module
                   |a module                    |variables used in function
                   |                            |specification
   Target Milestone|---                         |4.8.0

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-05-02 
06:00:08 UTC ---
The regression has been caused by PR 52751 (cf. also PR 40973 and PR 52916).

The patch for those PRs marks the module variable "DIM" as nonpublic, which
increases the optimization possibilities for the compiler. However, "dim" is
used for the type parameter of the result variable of two (public) functions.

The solution is to do the same as for PR 52916 - but this time for module
variables: Setting attr.public_used for the module variable if it is used as
type parameter of public functions - even if those are only available
indirectly via generic interfaces.

Reply via email to