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

Bug 313037

Summary: ASTBinaryExpression.getExpressionType() dosen't return the correct IType
Product: [Tools] CDT Reporter: Chen Rui <chenruis>
Component: cdt-coreAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: eclipse.sprigogin
Version: 7.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Chen Rui CLA 2010-05-16 11:50:26 EDT
Build Identifier: 

I found that, method ASTBinaryExpression.getExpressionType() dosen't return the correct IType when the given expression is like "a+4", where one operand is of CArrayType, and the other one is of int basic type. The result was expected to be a pointer type, but actually it is not. 
I think the author just didn't consider the case when one of the operands is of CArrayType

Reproducible: Always

Steps to Reproduce:
1. Just take a look at the source code
Comment 1 Sergey Prigogin CLA 2010-05-17 03:00:51 EDT
Fixed in HEAD > 20100516.