[Bug tree-optimization/92116] Potential null pointer dereference in 'gomp_acc_remove_pointer'

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 9 23:33:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92116

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|msebor at gcc dot gnu.org          |unassigned at gcc dot gnu.org

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
(In reply to Thomas Schwinge from comment #2)

IIRC, I assumed based on the check for t != NULL in the controlling expression
that the loop could terminate with t == NULL.  The warning code predates the
patch I was testing -- it just enables it without enhancing its implementation.
 But since r279147 removes the loop I think this report can be resolved, either
as fixed or as invalid.


More information about the Gcc-bugs mailing list