Community
Participate
Working Groups
Here is the example: template <typename T> class CT { void init(); }; void CT<int>::init(void) { }
The issue was fixed together with bug 297438.
Created attachment 176872 [details] testcase + fix for the 6.0.x branch
Fixed in CDT 6.0.x > 20100818.
*** cdt cvs genie on behalf of mschorn *** Bug 322988: Testcase. [*] AST2TemplateTests.java 1.184.2.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java?root=Tools_Project&r1=1.184.2.2&r2=1.184.2.3 [*] AST2TemplateTests.java 1.188 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java?root=Tools_Project&r1=1.187&r2=1.188 [*] CPPFunctionSpecialization.java 1.22.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunctionSpecialization.java?root=Tools_Project&r1=1.22&r2=1.22.2.1 [*] AST2TemplateTests.java 1.155.2.8 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java?root=Tools_Project&r1=1.155.2.7&r2=1.155.2.8
CQ:WIND00228445 The exception originally seen was this: java.lang.ArrayIndexOutOfBoundsException: 0 at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPFunctionSpecialization.updateParameterBindings(CPPFunctionSpecialization.java:226) when navigating to "CT<int>::init()" .