Opened 7 years ago

Closed 7 years ago

#37 closed defect (fixed)

Missing generated code

Reported by: pabuhr Owned by: Rob Schluntz <rschlunt@…>
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

void  fred() {
    int x;
    double y;
    sizeof( typeof( int ) );
    sizeof( typeof( 3 ) );
    sizeof( typeof( x ) );     // missing
    sizeof( typeof( x + 3 ) );
    sizeof( typeof( x + y ) ); // missing
    sizeof( typeof( y + 3 ) ); // wrong type (type of 3)
}

cfa test3.c -CFA
CFA Version 1.0.0 (debug)
...
void __fred__F___1(){
    int __x__i_2;
    double __y__d_2;
    ((void)sizeof(int ));
    ((void)sizeof(int ));
    ((void)sizeof());     // missing
    ((void)sizeof(int ));
    ((void)sizeof());     // missing
    ((void)sizeof(int )); // wrong type (type of 3)
}

Change History (1)

comment:1 Changed 7 years ago by Rob Schluntz <rschlunt@…>

Owner: set to Rob Schluntz <rschlunt@…>
Resolution: fixed
Status: newclosed

In 322b97e:

Resolve typeof in sizeof/alignof expressions [fixes #37]

Note: See TracTickets for help on using tickets.