Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322988

Summary: [Templates] Exception parsing method specialization
Product: [Tools] CDT Reporter: Markus Schorn <mschorn.eclipse>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Mike Kucera <mikekucera>
Severity: normal    
Priority: P3 CC: mober.at+eclipse
Version: 6.0.2   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
testcase + fix for the 6.0.x branch mschorn.eclipse: iplog-

Description Markus Schorn CLA 2010-08-18 04:18:27 EDT
Here is the example:

template <typename T> class CT {
   void init();
};

void CT<int>::init(void) {
}
Comment 1 Markus Schorn CLA 2010-08-18 04:47:41 EDT
The issue was fixed together with bug 297438.
Comment 2 Markus Schorn CLA 2010-08-18 04:50:53 EDT
Created attachment 176872 [details]
testcase + fix for the 6.0.x branch
Comment 3 Markus Schorn CLA 2010-08-18 05:02:43 EDT
Fixed in CDT 6.0.x > 20100818.
Comment 5 Martin Oberhuber CLA 2010-08-18 05:51:08 EDT
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()"  .