Hello, On Wed, 25 May 2022, Richard Biener via Gcc-patches wrote:
> I guess we might want to (warn about labels in the "toplevel" > scope in switch statements). So warn about > > switch (x) > { > case 1: > bar: > }; That style is actually used quite some time in GCC itself. Sometimes with statements between 'case 1:' and 'bar:'. > Maybe we just want to warn when the label is otherwise unused? We do with -Wunused-labels (part of -Wall). The testcases simply aren't compiled with that. Ciao, Michael.