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

Bug 369341

Summary: [expressions] Range expressions are not handled properly
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, nobody, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marc Khouzam CLA 2012-01-22 15:08:04 EST
With code defining an array:
    int ab[15];

If I enter the following expression in the expressions view:
  *((ab)+0)@10.  

and then expand the array, I get errors like:

668,991 [MI]  154-var-create --thread 1 --frame 0 - * *((ab)+0)@10[0]
668,993 [MI]  154^error,msg="cannot subscript something of type `int'"