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

            Bug ID: 89579
           Summary: -Wclobbered warning false positive when compiling with
                    -Og
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Keywords: diagnostic, rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: abigail.buccaneer at gmail dot com
  Target Milestone: ---

Created attachment 45884
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45884&action=edit
Minimal reproduction

When compiling with `-Wclobbered -Og`, we see false positives from the
-Wclobbered warning. These don't occur with any other optimization level. This
breaks our build under `-Wextra -Werror -Og`.

Attached is a minimal reproduction test case. This bug is present from GCC
5.5.0 to GCC trunk (9.0.1 20190303). GCC 5.4.0 and below are not affected.

Reply via email to