Opened 7 years ago
Last modified 5 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 Changed 5 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Rob Schluntz to mlbrooks |
Summary: | Inner generic types â Cannot declare anonymous union around generic type |
Note: See
TracTickets for help on using
tickets.