(j3.2006) derived types with type parameters are different

Jim Xia jimxia
Wed Jul 23 09:48:05 EDT 2008


> 
>        MODULE M1
>          TYPE T(N)
>            INTEGER(KIND=4), KIND :: N
>            SEQUENCE
>            REAL A(N)
>          END TYPE
>          TYPE(T(4)) :: X
>        END
> 
>        MODULE M2
>          TYPE T(N)
>            INTEGER(KIND=4), KIND :: N
>            SEQUENCE
>            REAL A(N+0)
>          END TYPE
>          TYPE(T(4)) :: Y
>        END
> 
> In this case, should X and Y be considered to have the same
> type?  I think not, but I find no language in the standard

Why would you think x and y are of different types?  They look to be the 
same type to me.

Cheers,


Jim Xia

RL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444  Tie-line 313-3444
email: jimxia at ca.ibm.com
D2/YF7/8200 /MKM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20080723/d74775ac/attachment.html 



More information about the J3 mailing list