Subject: [Boost-bugs] [Boost C++ Libraries] #11240: tons of warnings about unused local typedefs with clang++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-24 20:35:09
#11240: tons of warnings about unused local typedefs with clang++
--------------------------------------+------------------------------
Reporter: Moritz Bunkus <moritz@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.58.0
Severity: Regression | Keywords:
--------------------------------------+------------------------------
When compiling anything using `BOOST_RANGE_CONCEPT_ASSERT()` clang++ emits
tons of warnings about used local typedefs if compiled with `-Wall`.
This is a regression compared to 1.57.0.
Trivial example program:
{{{
#include <vector>
#include <boost/range/algorithm.hpp>
int
main(int, char**) {
std::vector<int> v;
boost::range::sort(v);
}
}}}
Compiled with:
{{{
clang++ -Wall -I$HOME/opt/boost/boost_1_58_0/include/ \
-L$HOME/opt/boost/boost_1_58_0/lib/ -o cpp1 cpp1.cpp
}}}
Output (excerpt):
{{{
In file included from cpp1.cpp:46:
In file included from
/home/mosu/opt/boost/boost_1_58_0/include/boost/range/algorithm.hpp:29:
In file included from
/home/mosu/opt/boost/boost_1_58_0/include/boost/range/concepts.hpp:19:
/home/mosu/opt/boost/boost_1_58_0/include/boost/concept_check.hpp:51:7:
warning: unused typedef 'boost_concept_check51' [-Wunused-local-typedef]
BOOST_CONCEPT_ASSERT((Model));
â¦
â¦
313 warnings generated.
}}}
These are 313 warnings for that trivial example program above.
g++ 4.9.2 does not emit such warnings, with neither version.
clang++ 3.6.0 emits those warnings with Boost 1.58.0 but not with 1.57.0
or earlier.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11240> 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:18 UTC