https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78874
Bug ID: 78874 Summary: Manual describes "-Wno-aggressive-loop-optimizations" as if without "no-" Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jzwinck at gmail dot com Target Milestone: --- The gcc and g++ man pages say: -Wno-aggressive-loop-optimizations Warn if in a loop with constant number of iterations the compiler detects undefined behavior in some statement during one or more of the iterations. The "no-" here is a mistake: -Waggressive-loop-optimizations enables the message and -Wno-* turns it off. Demo: https://godbolt.org/g/1ICxI5