This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21986] Bad .mod file, ICE upon USE
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2005 17:13:41 -0000
- Subject: [Bug fortran/21986] Bad .mod file, ICE upon USE
- References: <20050609165439.21986.Pierre.Asselin@seagate.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-27 17:13 -------
Here is a reduced testcase:
MODULE module1
TYPE type1
INTEGER TYP1
END TYPE type1
END MODULE
MODULE module2
TYPE type2
INTEGER TYP2
END TYPE type2
END MODULE
MODULE mymodule
CONTAINS
SUBROUTINE SUB1()
IMPLICIT NONE
END SUBROUTINE SUB1
SUBROUTINE SUB2(T_TYPE1, T_TYPE2)
USE module1
USE module2
IMPLICIT NONE
TYPE (type1):: T_TYPE1
TYPE (type2) T_TYPE2(T_TYPE1%TYP1)
END SUBROUTINE SUB2
END MODULE
SUBROUTINE A_SUBROUTINE
USE mymodule
END SUBROUTINE A_SUBROUTINE
Oh, this is a dup of bug 19669.
*** This bug has been marked as a duplicate of 19669 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21986