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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-06-23
                 CC|                            |dmalcolm at gcc dot gnu.org,
                   |                            |manu at gcc dot gnu.org
          Component|preprocessor                |c++
     Ever confirmed|0                           |1

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
It actually produces:

prog.cc: In function 'int main()':
prog.cc:6:5: warning: this 'else' clause does not guard...
[-Wmisleading-indentation]
     m(0);
     ^
prog.cc:6:5: note: ...this statement, but the latter is misleadingly indented
as if it is guarded by the 'else'

and the fact that both diagnostics are given at the same location is
suspicious. The warning code should be able to tell that something wrong
happened there and avoid warning.

Reply via email to