This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/21986] Bad .mod file, ICE upon USE


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]