------- Comment #5 from kargl at gcc dot gnu dot org  2009-04-25 16:37 -------
The Fortran 95 standard states:

  7.5.1.4    Intrinsic assignment conformance rules

  For an intrinsic assignment statement, variable and expr shall conform in
  shape, and if expr is an array, variable shall also be an array. The types
  of variable and expr shall conform with the rules of Table 7.9.

This is not a constraint, so a compiler is not required to generate a
warning or an error.  It can do anything, including corrupt memory.
As Dominique suggested, one should use the -fbounds-check option while
developing code.


-- 

kargl at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

Reply via email to