Changes between Initial Version and Version 1 of Ticket #10
- Timestamp:
- Apr 7, 2020, 3:23:13 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10
- Property Owner changed from to
- Property Summary Inner generic types → Cannot declare anonymous union around generic type
-
Ticket #10 – Description
initial v1 1 This code does not work : 1 Minimal example: 2 {{{ 3 forall(otype T) 4 struct result { 5 #ifdef THE_ERROR 6 union { 7 #endif 2 8 9 T value; 10 11 #ifdef THE_ERROR 12 }; 13 #endif 14 }; 15 }}} 16 17 produces : 18 {{{ 19 error: ‘_sizeof_Y1T’ undeclared here (not in a function) 20 }}} 21 22 23 Desired for: 3 24 4 25 {{{ … … 12 33 }; 13 34 }}} 14 15 produces :16 {{{17 In function ‘___constructor__F_P13u__anonymous02tT_autogen___1’:18 error: ‘_sizeof_2tT’ undeclared (first use in this function)19 note: each undeclared identifier is reported only once for each function it appears in20 21 }}}