[Bug fortran/50121] Labels in a TYPE statement should be put in the derived type's scope

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 19 08:05:00 GMT 2011


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-08-19
                 CC|                            |burnus at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-08-19 07:33:46 UTC ---
For completeness, the program in comment 0 works with g95, NAG, ifort,
openf95/pathf95.
(Though, in case of g95 seemingly by ignoring such labels in TYPE as adding
another to the same type is not diagnosed. The other compilers do diagnose
this.)

Variant - failing in the same way with gfortran but working with the compiler
mentioned above.

1 integer :: a
1 type t
    integer :: i
  end type t
end



More information about the Gcc-bugs mailing list