Custom Query (145 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (34 - 36 of 145)

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Ticket Owner Reporter Resolution Summary
#69 Rob Schluntz <rschlunt@…> Thierry Delisle fixed With statement and anonymous fields
Description

with statement does not work with anonymous fields:

struct inner { int value; };
struct outer { inner;     };

int foo(outer & this) with( this ) {
	return value;
}
#73 Rob Schluntz Rob Schluntz fixed Infinite loop with generics and new
Description
forall( dtype T | sized(T), ttype Params | { void ?{}( T &, Params ); } ) T * new( Params p );

forall( otype T )
struct Ptr {
  T * values;
};

int main() {
  int * x = new();
}
#74 Rob Schluntz <rschlunt@…> Rob Schluntz fixed Generic reference member generates incorrect code
Description
 forall( otype T )
 struct S { T i; };

 struct R {
     S(int) & s;
 };

 cfa test.c
 CFA Version 1.0.0 (debug)
 test.c: In function '___operator_assign__F2sR_R2sR2sR_autogen___1':
 test.c:5:14: error: expected identifier or '(' before ')' token
      S(int) & s;
             ^
 test.c:5:13: error: '_temp1' undeclared (first use in this function)
      S(int) & s;
            ^~~   
 test.c:5:13: note: each undeclared identifier is reported only once for each function it appears in

The problem is this line of generated code:

   struct S()  _temp1;

which is not C. This temporary is generated by the Box pass. May be related to #7.

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Note: See TracQuery for help on using queries.