------- Comment #2 from burnus at gcc dot gnu dot org  2007-04-10 19:26 -------
Accept. I somehow missed the email/PR while reading all the messages after a
conference.

Patch at:
http://gcc.gnu.org/ml/fortran/2007-04/msg00105.html


(In reply to comment #1)
> xlf yields a bus error without optimization and -O, and abort with -O3.
This is ok as the variable is not allocated.

> g95 gives the following errors:
> In file pointer_intent_1.f90:39
>       nullify(t%point)
>                 1
> Error: Cannot NULLIFY the INTENT(IN) pointer 't' at (1)

I believe this is wrong. The pointer "t" is not modified at all, only the
component "point" of the pointer target is.
That is: Modifying t%x and t%point is ok, but changing the assignment of the
pointer "t" itself is not allowed.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-03-17 13:15:25         |2007-04-10 19:26:33
               date|                            |


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

Reply via email to