Opened 4 years ago

Last modified 4 years ago

#20 new defect

zero_t doesn't work well with default arguments

Reported by: Thierry Delisle Owned by:
Priority: minor Component: cfa-cc
Version: 1.0 Keywords: zero_t default param
Cc:

Description (last modified by Rob Schluntz)

The following code does not compile :

struct foo {
	int i;
};

void ?{}( foo & this, zero_t zero ) {
	this.i = zero;
}

extern void bar( foo this = 0 );

int main() {
	bar();
}

Change History (1)

comment:1 Changed 4 years ago by Rob Schluntz

Description: modified (diff)
Note: See TracTickets for help on using tickets.