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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
This may be tricky to support in -Wmisleading-indentation without introducing
false-positives because we only have the last 3 tokens to work with and don't
know about the location or existence of the topmost if(). 

It should be easy to implement a separate -Wdangling-else warning though that
keeps track of the number of unbraced if()s and warns when encountering an else
with >= 2 unbraced if()s.

Reply via email to