On Fri, Jul 14, 2017 at 2:34 PM, Neil Carlson <[log in to unmask]> wrote:
> To be completely explicit, is the following use of same_type_as standard
> conforming?
>
> program main
> class(*), allocatable :: x, y
> allocate(x, source=.true.)
> allocate(y, source=2.0)
> print *, same_type_as(x, y)
> end program
>
Per the standard blurb you provided, is not the result of the print
statement processor-dependent , implying this little program, while
standard-conforming, can possibly give different answers with
different processors?
Vipul
|