[Boost-bugs] [Boost C++ Libraries] #12206: gcc 6.1 reports "misleading-indentation" warning

Subject: [Boost-bugs] [Boost C++ Libraries] #12206: gcc 6.1 reports "misleading-indentation" warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-15 17:27:11


#12206: gcc 6.1 reports "misleading-indentation" warning
------------------------------+-----------------------
 Reporter: yuri.borisoff@… | Owner: marshall
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: algorithm
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: gcc, warning |
------------------------------+-----------------------
 GCC 6.1 produces the following output (-Wall, -Werror).

 ../boost/algorithm/cxx11/none_of.hpp: In function 'bool
 boost::algorithm::none_of(InputIterator, InputIterator, Predicate)':
 ../boost/algorithm/cxx11/none_of.hpp:32:1: error: this 'for' clause does
 not guard... [-Werror=misleading-indentation]
  for ( ; first != last; ++first )
  ^~~
 ../boost/algorithm/cxx11/none_of.hpp:35:5: note: ...this statement, but
 the latter is misleadingly indented as if it is guarded by the 'for'
      return true;
      ^~~~~~

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12206>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC