Changes between Initial Version and Version 1 of Ticket #10


Ignore:
Timestamp:
Apr 7, 2020, 3:23:13 PM (5 years ago)
Author:
mlbrooks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10

    • Property Owner changed from Rob Schluntz to mlbrooks
    • Property Summary Inner generic typesCannot declare anonymous union around generic type
  • Ticket #10 – Description

    initial v1  
    1 This code does not work :
     1Minimal example:
     2{{{
     3forall(otype T)
     4struct result {
     5    #ifdef THE_ERROR
     6    union {
     7    #endif
    28
     9    T value;
     10
     11    #ifdef THE_ERROR
     12    };
     13    #endif
     14};
     15}}}
     16
     17produces :
     18{{{
     19error: ‘_sizeof_Y1T’ undeclared here (not in a function)
     20}}}
     21
     22
     23Desired for:
    324
    425{{{
     
    1233};
    1334}}}
    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 in
    20 
    21 }}}