View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001052 | Ecere SDK | compiler | public | 2014-01-04 03:49 | 2014-04-30 09:34 |
Reporter | nicktick | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 0.44.09 | ||||
Target Version | 0.46 eC II | ||||
Summary | 0001052: ecc gives an error de-referencing a pointer to a local struct | ||||
Description | void Test() { struct SS { uint a; union { uint b; uint c; }x; }; struct SS *p; p = new struct SS[10]; p[2].x.b=1; //compilation error here p->x.b=1; // or here } compilation errrors: form1.ec:170:10: error: couldn't determine type of p[2].x form1.ec:170:10: error: member operator on non-structure type expression p[2].x.b form1.ec:170:10: error: couldn't determine type of p[2].x.b form1.ec:170:10: error: couldn't determine type of p[2].x.b form1.ec:170:10: error: couldn't determine type of p[2].x.b = 1 | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-04 03:49 | nicktick | New Issue | |
2014-01-04 03:53 | jerome | Note Added: 0001148 | |
2014-01-04 03:54 | jerome | Status | new => confirmed |
2014-01-04 03:55 | jerome | Summary | compilation error on struct => compilation error de-referencing an array of a local struct |
2014-01-04 03:55 | jerome | Description Updated | |
2014-01-04 03:55 | jerome | Summary | compilation error de-referencing an array of a local struct => compilation error de-referencing a pointer to a local struct |
2014-01-04 03:56 | jerome | Description Updated | |
2014-01-04 03:56 | jerome | Summary | compilation error de-referencing a pointer to a local struct => ecc gives an error de-referencing a pointer to a local struct |
2014-04-30 09:34 | jerome | Target Version | => 0.46 eC II |