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

Bug 371054

Summary: Indexer array/pointer resolution
Product: [Tools] CDT Reporter: Yann Diorcet <diorcet.yann>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Yann Diorcet CLA 2012-02-09 05:20:22 EST
Indexer fail on pointer on object array.
For example:
	string tt[1];
	tt[0].clear();
	tt->clear();

The second and the third line have the same goal but third is not resolved by the indexer.
Comment 1 Doug Schaefer CLA 2012-02-09 11:54:35 EST
While technically valid, that is pretty bad code...
Comment 2 Markus Schorn CLA 2012-02-10 02:29:21 EST
This works for me. Please specify the exact version of CDT you are using. Why do you think that the indexer does not resolve the third line?
Comment 3 Yann Diorcet CLA 2012-02-10 03:17:54 EST
Version: Indigo Service Release 1
Build id: 20110916-0149

Eclipse shows:
Method 'clear' could not be resolved
Comment 4 Yann Diorcet CLA 2012-02-13 12:08:15 EST
Have you succeeded to reproduce the same behavior?
Comment 5 Markus Schorn CLA 2012-04-04 08:57:13 EDT
(In reply to comment #4)
> Have you succeeded to reproduce the same behavior?

Yes, I can reproduce the problem with CDT 8.0.1. It works with the version on HEAD.