Opened 5 years ago
#146 new defect
Tuple member access
Reported by: | pabuhr | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
int main() { double d; float f; [ int, float, double ] f() {}; [ double, float ] x = f().[ 2, 1 ]; // works x = f().[ 2, 1 ]; // works [ d, f ] = f().[ 2, 1 ]; // fails } CFA Version 1.0.0 (debug) error: No reasonable alternatives for expression Generated Cast of: Tuple Index Expression, with tuple: Unique Expression with id:2 Application of Variable Expression: f: function ... returning _retval_f: tuple of types signed int float double with initializer (not constructed) Compound initializer: ... with attributes: Attribute with name: unused with index: 1 ... to: pointer to function ... returning _retval_f: tuple of types signed int float double with initializer (not constructed) Compound initializer: ... with attributes: Attribute with name: unused
Note: See
TracTickets for help on using
tickets.