Opened 9 years ago
Last modified 6 years ago
#10 assigned defect
Cannot declare anonymous union around generic type
| Reported by: | Thierry Delisle | Owned by: | mlbrooks |
|---|---|---|---|
| Priority: | major | Component: | cfa-cc |
| Version: | 1.0 | Keywords: | |
| Cc: |
Description (last modified by )
Minimal example:
forall(otype T)
struct result {
#ifdef THE_ERROR
union {
#endif
T value;
#ifdef THE_ERROR
};
#endif
};
produces :
error: â_sizeof_Y1Tâ undeclared here (not in a function)
Desired for:
forall(otype T, otype E)
struct result {
bool has_value;
union {
T value;
E error;
};
};
Change History (1)
comment:1 by , 6 years ago
| Description: | modified (diff) |
|---|---|
| Owner: | changed from to |
| Summary: | Inner generic types â Cannot declare anonymous union around generic type |
Note:
See TracTickets
for help on using tickets.