https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80550
Bug ID: 80550 Summary: error: case label does not reduce to an integer constant Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- markus@x4 mplayer % cat demux_mov.i void foo(int a) { switch (a) case 169 << 24:; } markus@x4 mplayer % gcc -c demux_mov.i markus@x4 mplayer % clang -fsanitize=undefined -c demux_mov.i markus@x4 mplayer % gcc -fsanitize=undefined -c demux_mov.i demux_mov.i: In function ‘foo’: demux_mov.i:3:3: error: case label does not reduce to an integer constant case 169 << 24:; ^~~~