[Bug c/70954] -Wmisleading-indentation false positive on GNU "ed"

2023-11-01 Thread muecker at gwdg dot de via Gcc-bugs
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

[Bug c/70954] -Wmisleading-indentation false positive on GNU "ed"

2016-05-05 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70954

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-05-05
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
Confirmed.