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.

Reply via email to