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

            Bug ID: 70475
           Summary: -Wmisleading-indentation quetionable in Eigen
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larsbj at gullik dot net
  Target Milestone: ---

In Eigen (http://eigen.tuxfamily.org/index.php?title=Main_Page),
this construct is used to group things:

----------------
void do_stuff();
void do_other_stuff();

int main() {
    bool a = false;

           do_other_stuff();
    if (a) do_stuff();
           do_other_stuff();
};
-------------

Should -Wmisleading-indentation really warn on this?
To me it is pretty clear that the conditional only
apply to the one line.

Reply via email to