This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2007 18:26:34 -0000
- Subject: [Bug testsuite/31240] gfortran.dg/pointer_intent_1.f90 failure at -O0
- References: <bug-31240-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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