Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313037 - ASTBinaryExpression.getExpressionType() dosen't return the correct IType
Summary: ASTBinaryExpression.getExpressionType() dosen't return the correct IType
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Sergey Prigogin CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-16 11:50 EDT by Chen Rui CLA
Modified: 2010-05-30 22:39 EDT (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 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.