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

            Bug ID: 111211
           Summary: No warning for iterator going out of scope
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lehua.ding at rivai dot ai
  Target Milestone: ---

Compiler Explorer: https://godbolt.org/z/o4qPbovaz

There is a warning reported when the number of iterations is less than or equal
to 7, and no warning reported when it is greater than 7. I feel this behavior
is a bit strange.

Reply via email to