Opened 7 years ago

Closed 7 years ago

#79 closed defect (fixed)

Statement expression as a sub-expression fails resolution

Reported by: Rob Schluntz Owned by: Rob Schluntz
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

  int main( int argc, char * argv[] ) {
    5+({
      int __result = 0;
      __result;
    });
  }

It seems the resolver has a hard time when a statement expression is a subexpression and contains variables.

Change History (1)

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

Resolution: fixed
Status: assignedclosed

In 5e2c348:

Assign a result type to StmtExpr? after resolution [fixes #79]

Note: See TracTickets for help on using tickets.