Community
Participate
Working Groups
I'm filing this under indexer rather than codan because the warning only appears when some of the code is in a header file, suggesting an indexer issue. test.hpp: template <typename, int> struct B; test.cpp: #include "test.hpp" template <typename> struct A { }; template <typename valueT> struct B<A<valueT>, 0> { B(const A<valueT>& o) : obj(o) {} // BOGUS WARNING HERE const A<valueT>& obj; }; The warning at the indicated line is: "Member 'obj' was not initialized in this constructor"
I'll look at the code on the codan side and change the component back to cdt-indexer if necessary.
It was a problem in the checker. Fixed in 8.1.0. Thanks for the report and sample code!
*** cdt git genie on behalf of Marc-Andre Laperle *** Bug 368611 - Bogus warning in template partial specialization [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=af1c5c31d1dd6ec111ed9262ca8fdbcb22e2e37f