Opened 7 years ago

Closed 7 years ago

#43 closed defect (fixed)

Anonymous generics ctor

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

Description

The following data structure cannot be constructed :

typedef void (*fptr_t)();

forall( dtype T )
struct __array {
	T * data;
	short size;
};

struct guard_t {
	struct {
		__array( float );
		fptr_t func;
	} prev;
};

void ?{}( guard_t & this, float * ptr, short size, fptr_t func ) {
	// Save previous thread context
	(this.prev).data = ptr;
	this.prev.size = size;
	this.prev.func = func;
}

Change History (2)

comment:1 Changed 7 years ago by Thierry Delisle

Priority: majorcritical

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

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

In 189d800:

Rework autogen to resolve struct functions as they are generated [fixes #43]

Note: See TracTickets for help on using tickets.