I'm trying to build cppcheck 1.69 on Ubuntu 11.04.
Command:
make
or
make SRCDIR=build CFGDIR=cfg HAVE_RULES=yes
Result:
build/checkautovariables.cpp:527:16: error: no match for ‘operator==’ in ‘var == cppcheck_nullptr_impl’
I'm trying to build cppcheck 1.69 on Ubuntu 11.04.
Command:
make
or
make SRCDIR=build CFGDIR=cfg HAVE_RULES=yes
Result:
build/checkautovariables.cpp:527:16: error: no match for ‘operator==’ in ‘var == cppcheck_nullptr_impl’
it fails on g++ 4.1.1-4.5 due to bug #33990. bug in lookup of member template conversion operator for pointer to member functions
and
I did an gcc 4.5 ugly fix in cxx1emu.h replacing
#define nullptr cppcheck_nullptr_impl
with
#if (__GNUC__ <= 4 && __GNUC_MINOR__ == 5)
#define nullptr (0)
#else
#define nullptr cppcheck_nullptr_impl
#endif