This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40580] Add -fcheck=pointer with runtime check for using an unallocated argument
- 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: 29 Jun 2009 16:23:21 -0000
- Subject: [Bug fortran/40580] Add -fcheck=pointer with runtime check for using an unallocated argument
- References: <bug-40580-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2009-06-29 16:23 -------
Mine. I have a patch.
PR 29616 is related, but goes beyond by checking also assignments to pointers
and undefined pointers (not only for unassociated pointers). (For -std=f95 one
can also check assignments to allocatables, for f2003 one reallocates on
assignment.) For RHS expressions, one could also add checks. The question is at
some point whether all the checks become too slow and whether one then needs an
pointer_expensive option or similarly.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |29616
nThis| |
AssignedTo|unassigned at gcc dot gnu |burnus at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-06-29 16:23:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40580