[Bug fortran/64678] Expected association error on dependent associate statements
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Sat Jan 24 14:05:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64678
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #5 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Dominique d'Humieres from comment #4)
> > Indeed, that's the easy workaround. I'd have thought the obvious definition
> > for the single multi-associate statement would be to be a shortcut exactly
> > equivalent to nested associates.
>
> In my mind it was not a workaround. From what I understand (little) of the
> Kargl's comment 1, the two forms should be either rejected or accepted.
I tried NAG, PGI and xlf. All of them accept the 'nested' version,
but only PGI accepts the original code.
xlf 14:
"pr64678.f90", line 10.22: 1514-091 (S) Invalid structure component reference.
The object name and all component names (except the rightmost) must be of type
derived.
NAG 6:
NAG Fortran Compiler Release 6.0(Hibiya) Build 1032
Product NPL6A60NA for x86-64 Linux
Copyright 1990-2014 The Numerical Algorithms Group Ltd., Oxford, U.K.
f95comp version is Hibiya(6.0) Build 1032
Error: pr64678.f90, line 10: A is not of derived type
detected at %@MAP
So I think Steve has pointed into the right direction.
Nevertheless, consider posting your code on c.l.f.
More information about the Gcc-bugs
mailing list