public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109905] New: Missed misleading indentation with braces
@ 2023-05-19  5:41 roland.illig at gmx dot de
  0 siblings, 0 replies; only message in thread
From: roland.illig at gmx dot de @ 2023-05-19  5:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109905

            Bug ID: 109905
           Summary: Missed misleading indentation with braces
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

https://github.com/NetBSD/src/blob/93dc650849c98c54c31aa9cbbce9affaaf649563/bin/cat/cat.c#L185
has misleading indentation, as the 'else' branch does not start with a '{'.

I tried GCC 10 and GCC 12, which don't detect this. Maybe GCC 14 should.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-19  5:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19  5:41 [Bug c/109905] New: Missed misleading indentation with braces roland.illig at gmx dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).