https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70954
Martin Uecker changed:
What|Removed |Added
CC||muecker at gwdg dot de
--- Comment #2 from Martin Uecker ---
Here is another example of what appears to be the same bug. Reported here:
https://gcc.gnu.org/pipermail/gcc/2023-November/242803.html
I think it would be useful of the title of this report could be changed to
mention "label".
/*
* miside.c
* MWE for a wrong warning shown with gcc -Wmisleading-indentation
*/
void
good(int c)
{
label:
while (c != '-');
if (c != '-')
goto label;
}
void
bad(int c)
{
label: while (c != '-');
if (c != '-')
goto label;
}
https://gcc.godbolt.org/z/6MMsds1bd