Opened 6 years ago

Last modified 6 years ago

#12206 new Bugs

gcc 6.1 reports "misleading-indentation" warning

Reported by: yuri.borisoff@… Owned by: Marshall Clow
Milestone: To Be Determined Component: algorithm
Version: Boost 1.61.0 Severity: Problem
Keywords: gcc, warning Cc:

Description

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; ~

Change History (1)

comment:1 by Marshall Clow, 6 years ago

Fixed in commit 5314d59. Will merge to master before next release.

Note: See TracTickets for help on using tickets.