Hi, Similar to this bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106528 -Wmissing-indentation is blinded by comments: int square(int num) { if (num == 1) goto fail; // if (num == 0) goto fail; if (num > 20) return num * num; else return num + num; fail: return -1; } The above case does not warn in GCC, but does in Clang: https://godbolt.org/z/bMG5jM9Ga
I suppose the better diagnostic would point out that if (num > 20) return num * num; else return num + num; is unreachable?