Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322988 - [Templates] Exception parsing method specialization
Summary: [Templates] Exception parsing method specialization
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 6.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Mike Kucera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 04:18 EDT by Markus Schorn CLA
Modified: 2010-08-18 05:51 EDT (History)
1 user (show)

See Also:


Attachments
testcase + fix for the 6.0.x branch (3.57 KB, patch)
2010-08-18 04:50 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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()"  .