template <typename T> struct A { explicit A(const T& r) : v{r} {} const T& v; }; template <typename T> struct A<T*> { explicit A(const T* r) : v{r} {} const T* v; };
Output:
Cppcheck 2.10 [test.cpp:11]: (warning) Member variable 'A::v' is not initialized in the constructor.
The current version is 2.16. The FP does not reproduce there.
Log in to post a comment.
Output:
The current version is 2.16. The FP does not reproduce there.