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: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2005 23:09: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 pault at gcc dot gnu dot org 2005-09-06 23:09 -------
(In reply to comment #0)
This is incorrect code, which should generate an error, rather than an ICE.
As ifort9.0 puts it:
fortcom: Error: ../pr21986.f90, line 11: This procedure cannot be PUBLIC since
it has argument(s) whose derived type(s) are PRIVATE. [SIZE]
The example compiles and runs correctly with gfortran and ifort if public::
dummysub is changed to public:: dummysub, intwrapper.
I do not see why this is marked as resolved duplicate, since it behaves in the
same way that it always did.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21986