Community
Participate
Working Groups
Created attachment 185471 [details] source file that reproduces the error For the code in the attached files (test.cpp and test.hpp), the parser gives the following error at the call to a.f(0) in main() in test.cpp: Invalid arguments Candidates are: void f(?) The "?" leads me to believe the parser is unable to deduce the type of the argument of f. Interestingly, any of a number of small changes to the code cause the error to go away. Some of these are: 1. pasting the contents of test.hpp into test.cpp instead of including test.hpp (this one is very suspicious - this shouldn't make a difference at all, should it?) 2. removing the "enclosing" class in test.hpp and putting its contents in namespace scope instead 3. making the "enclosing" class in test.hpp not a template
Created attachment 185472 [details] header file included by source file that reproduces the error
Created attachment 185774 [details] testcase + fix Thanks for assembling the test case!
Fixed in 8.0 > 20101223.
*** cdt cvs genie on behalf of mschorn *** Bug 332884: Partial specializations of class template specializations. [*] PDOMCPPClassTemplateSpecialization.java 1.16 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPClassTemplateSpecialization.java?root=Tools_Project&r1=1.15&r2=1.16 [*] PDOMCPPClassTemplatePartialSpecializationSpecialization.java 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPClassTemplatePartialSpecializationSpecialization.java?root=Tools_Project&r1=1.4&r2=1.5 [*] PDOM.java 1.157 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java?root=Tools_Project&r1=1.156&r2=1.157 [*] IndexCPPTemplateResolutionTest.java 1.70 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/index/tests/IndexCPPTemplateResolutionTest.java?root=Tools_Project&r1=1.69&r2=1.70