Community
Participate
Working Groups
In the following code: template <typename> class A {}; template <typename, typename = void> struct B {}; template <typename T> struct B<A<T>> { typedef int type; }; int main() { typedef B<A<int>>::type type; // ERROR HERE } CDT gives an error at the indicated line: "Type 'B<A<int>>::type' could not be resolved". GCC compiles the code fine.
Thanks, added testcase and fix.
*** cdt git genie on behalf of Markus Schorn *** Bug 367997: Partial class template specialization using default arguments. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=99fa95b7cd235239f10db99593c458d6ee354144