Opened 8 years ago

Last modified 8 years ago

#20 new defect

zero_t doesn't work well with default arguments — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.