https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115822
Bug ID: 115822 Summary: -Wmisleading-indentation should warn for inconsistent use of tabs vs spaces Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: brunopitrus at hotmail dot com Target Milestone: --- …rather than assuming a tab is a certain number of spaces. This example looks misleading depending on your editor settings: https://godbolt.org/z/x97Y68Wc4 The preferred semantics would be Python style (mixing of tabs and spaces is allowed iff the prefix is the same) but that would probably require adding a stack machine to the relevant code.