[Bug fortran/53537] [4.6/4.7 Regression] Explicit IMPORT of renamed USE-associated symbol fails

mikael at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 19 13:08:00 GMT 2013


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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
         AssignedTo|unassigned at gcc dot       |mikael at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|4.6.4                       |4.7.3

--- Comment #12 from Mikael Morin <mikael at gcc dot gnu.org> 2013-02-19 13:07:40 UTC ---
The 4.6 backport gives a few regression. Namely:

FAIL: gfortran.dg/import2.f90  -O   (test for errors, line 40)
FAIL: gfortran.dg/import2.f90  -O   (test for errors, line 59)
FAIL: gfortran.dg/import2.f90  -O   (test for errors, line 65)
FAIL: gfortran.dg/import2.f90  -O   (test for errors, line 77)
FAIL: gfortran.dg/import8.f90  -O   (test for errors, line 15)
FAIL: gfortran.dg/interface_derived_type_1.f90  -O   (test for errors, line 16)


The reason is in gfc_use_derived, gfc_find_symbol returns a symbol of flavor
FL_DERIVED, so that no error is issued.  On trunk the symbol is of flavor
FL_PROCEDURE.  I don't feel like spending too much time on this, so I will just
leave 4.6 unfixed.

Thus, FIXED for 4.7.3 and 4.8.0,
WONTFIX for 4.6.*.



More information about the Gcc-bugs mailing list