Community
Participate
Working Groups
Build Identifier: 20110916-0149 Consider this code: class A { public: void SomeMethod() { } }; template <class T, void (T::*SomeMethod)() = &T::SomeMethod> class B { }; B<A> b1; // <<< "Invalid template arguments" CDT parser error! The code is valid in GCC 4.6. Reproducible: Always Steps to Reproduce: Create code from Details in C++ CDT project. "Invalid template arguments" error will be visible.
Thanks for the example, added testcase and fix.
*** cdt git genie on behalf of Markus Schorn *** Bug 363743: Default arg for non-type template parameter. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=adb6029e2722479d35dd451973847e3cf7d54a18