This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40580] Add -fcheck=pointer with runtime check for using an unallocated argument



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]