------- Comment #3 from kargl at gcc dot gnu dot org  2005-11-26 16:12 -------
I believe the code is illegal from 7.5.2, page 110,

   Constraint:  The target shall be of the same type, kind type parameters,
                and rank as the pointer.

Then on page 111, you find "The target shall have the same type parameters
as the pointer-object." 

BTW, both Lahey's web-based checking utility and NAG's compiler
rejects this code.

BTW2, gfortran 4.2 compiles the code, but I get garbage.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25030

Reply via email to