public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111211] New: No warning for iterator going out of scope
@ 2023-08-28  7:42 lehua.ding at rivai dot ai
  2023-08-28  7:44 ` [Bug c/111211] " lehua.ding at rivai dot ai
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: lehua.ding at rivai dot ai @ 2023-08-28  7:42 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-28 13:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28  7:42 [Bug c/111211] New: No warning for iterator going out of scope lehua.ding at rivai dot ai
2023-08-28  7:44 ` [Bug c/111211] " lehua.ding at rivai dot ai
2023-08-28  9:27 ` rguenth at gcc dot gnu.org
2023-08-28  9:30 ` lehua.ding at rivai dot ai
2023-08-28 13:13 ` pinskia at gcc dot gnu.org
2023-08-28 13:54 ` [Bug tree-optimization/111211] No warning for iterator going out of scope for writing to array of inline-asm pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).