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

Reply via email to