[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread apjo at tuta dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 --- Comment #11 from apjo at tuta dot io --- (In reply to Andrew Pinski from comment #10) Okay now that looks like a clang bug. Clang is supposed to diagnose misleading indentation like that (see: https://godbolt.org/z/1fv4rEseo).

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 --- Comment #10 from Andrew Pinski --- That is clang does not warn about this case here (changed all tabs to spaces to indepdent of -ftabstop option): ``` int randBytesGet() { int t; while (true) { if (true)

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 Andrew Pinski changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread apjo at tuta dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 apjo at tuta dot io changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #7 from Andrew

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread apjo at tuta dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 apjo at tuta dot io changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #6 from apjo

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread apjo at tuta dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 apjo at tuta dot io changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #5 from apjo

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 --- Comment #4 from Andrew Pinski --- Also once you change godbolt to be 8 spaces/tab, it becomes obvious the warning is correct for the default.

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c/108701] Incorrect -Wmisleading-indentation

2023-02-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108701 --- Comment #1 from Andrew Pinski --- Created attachment 54421 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54421=edit testcase