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

            Bug ID: 103780
           Summary: zero pointer is considered true
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lucfety at gmail dot com
  Target Milestone: ---

Created attachment 52036
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52036&action=edit
gcc-10 -v -save-temps -o main -O2 main.ii f.ii

Under certain conditions (see the code for example), a pointer that goes to 0
after decrement is still considered true.

Reply via email to