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

            Bug ID: 115729
           Summary: case label does not reduce to an integer constant
           Product: gcc
           Version: 14.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Created attachment 58550
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58550&action=edit
preprocessed source

Compiling the attached preprocessed
source, gives lots of "case label does not reduce to an integer constant"
errors, unless optimization is enabled.

clang compiles that fine.
Also I tried to produce a test-case,
doing a `switch` on an uint64_t var
defined as `static const`, but it compiles.
So I don't know what exactly breaks it at -O0
in that preprocessed source.

Reply via email to