[PATCH] PR Fortran/83548 -- a LOGICAL fix
Bernhard Reutner-Fischer
rep.dot.nop@gmail.com
Mon Dec 25 22:13:00 GMT 2017
On 25 December 2017 20:45:40 CET, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>The attach patch fixes a problem when a LOGICAL subprogram
>appears as the first element in an array constructor, which
>is interpreted as a LOGICAL type-spec, which fails because
>the argument is of type LOGICAL instead of INTEGER.
>
>Regression tested on i686-*-freebsd and x86_64-*-freebsd.
>
>OK to commit?
+ p = [real(kind=4) :: x, y]
+ q = [real(kind=8) :: x, y]
+ if (any(p .ne. r2)) call abort
+ if (any(q .ne. r3)) call aborts
+end program foo
aborts? abort?
Thanks,
More information about the Fortran
mailing list