Subject: [Boost-bugs] [Boost C++ Libraries] #10830: Clang static analyzer warns about <boost/graph/named_function_params.hpp>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-01 13:52:53
#10830: Clang static analyzer warns about <boost/graph/named_function_params.hpp>
------------------------------+----------------------
Reporter: anonymous | Owner: jewillco
Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
Version: Boost 1.57.0 | Severity: Problem
Keywords: |
------------------------------+----------------------
When running the clang static analyzer (v3.4.1) on some code of mine that
uses boost graph, it reports this warning about
boost/graph/named_function_params.hpp:
/usr/local/include/boost/graph/named_function_params.hpp:240:5: warning:
Address of stack memory associated with temporary object of type
'boost::param_not_found' returned to caller
return lookup_named_param_def<Tag, Args, param_not_found>::get(p,
param_not_found());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
I believe that's a genuine error.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10830> 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:17 UTC