Opened 15 years ago

Closed 15 years ago

#285 closed enhancement (fixed)

Automatically cast arrays to pointer expressions

Reported by: zirkel Owned by: zirkel
Priority: major Milestone:
Component: ast2model Version:
Keywords: Cc:

Description

 double a[...];
 double *p=a;  /*a same as &a[0] */

Replace a with &a[0] during model building

Change History (3)

comment:1 by Stephen Siegel, 15 years ago

Owner: set to zirkel
Status: newassigned

comment:2 by Stephen Siegel, 15 years ago

Component: frontast2model

comment:3 by zirkel, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed this. As part of the fix, I added a SubscriptExpressionIF to the model, and made the model factory return the SubscriptExpressionIF rather than a BinaryExpressionIF when creating a new subscript expression.

Note: See TracTickets for help on using tickets.