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 , 15 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 15 years ago
| Component: | front → ast2model |
|---|
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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.