control-toolbox icon indicating copy to clipboard operation
control-toolbox copied to clipboard

Incompatible cppad cg code for clang++

Open markusgft opened this issue 5 years ago • 2 comments

@jcarius had reported the following:

Some configurations* of Clang++ cannot compile parts of the cppad cg code:

/home/USERNAME/catkin_ws/src/ct/ct_core/include/external/cppad/cg/patterns/iter_equation_group.hpp:253:68: error: default initialization of an object of const type 'const std::map<size_t, std::set<size_t> >' (aka 'const map<unsigned long, set<unsigned long> >') without a user-provided default constructor const std::map<size_t, std::set<size_t> > IterEquationGroup<Base>::EMPTYMAPSETS; The issue is summarized in this Stackoverflow Question

(*) Yet unclear what causes this, on another machine clang worked fine.

markusgft avatar May 18 '19 06:05 markusgft

Hi, I'm facing the same problem. Did you find out any solution ?

thomasnappee avatar Nov 24 '19 08:11 thomasnappee

No, as of now, no solution has been reported. It may well be that newer releases of CppAD and/or clang++ and g++ do not show this bug, but this needs to checked and tested. By the way, the upcoming 3.0.2 release makes CppAD and CppADCG optional, which will make it easier to circumvent this problem.

markusgft avatar Nov 24 '19 13:11 markusgft