Opened 8 years ago
Closed 8 years ago
#78 closed defect (fixed)
Generic array element dereference
| Reported by: | Thierry Delisle | Owned by: | |
|---|---|---|---|
| Priority: | major | Component: | cfa-cc |
| Version: | 1.0 | Keywords: | |
| Cc: |
Description
This code segfaults:
forall(otype T)
struct X {
T arr[1];
};
forall(otype T)
void doit( X(T) & x, T e ) {
x.arr[0] = e;
}
int main() {
X(int) a;
doit( a, 1 );
}
Change History (1)
comment:1 by , 8 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In c20b0fe: