Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360541 - Indexer fails to resolve variable name in multiple variables declaration with custom type
Summary: Indexer fails to resolve variable name in multiple variables declaration with...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 09:57 EDT by João Eiras CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Eiras CLA 2011-10-11 09:57:31 EDT
Build Identifier: 20110615-0604

The following produces an indexer error: a is not defined in the expression "*b = a"

void foo(){
	typedef int foobar_t;
	foobar_t *a = 0, *b = a;
}

Reproducible: Always
Comment 1 Markus Schorn CLA 2011-10-31 12:06:35 EDT
Thanks for the sample code! 
Added testcase and fix.
Comment 2 CDT Genie CLA 2011-10-31 12:23:03 EDT
*** cdt git genie on behalf of Markus Schorn ***

    Bug 360541: Ambiguity resolution for declaration statements.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=939ab1508d4896bc6792e05efd048681bdfe85d2