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

Bug 360541

Summary: Indexer fails to resolve variable name in multiple variables declaration with custom type
Product: [Tools] CDT Reporter: João Eiras <joao.eiras>
Component: cdt-indexerAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Linux   
Whiteboard:

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