Opened 5 years ago

#163 assigned defect

Incorrect cast in polymorphique returns of builtins

Reported by: Thierry Delisle Owned by: Thierry Delisle
Priority: major Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

Given the function

forall(dtype T)
static inline T & identity(T & i) {
	return i;
}

The following code compiles if identity is a regular function but doesn't if it is a CFA builtin.

struct A { int a; };
void foo( A & a ) {
	printf("%d %d\n", a.a, identity(a).a);
}

Change History (0)

Note: See TracTickets for help on using tickets.