Opened 4 years ago

#66 new defect

Function and variable name collision for if

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


This code does not compile because the function can be evaluated for truthiness :

void next() {}

int main() {
	int * next = (void*)0;
	if( next ) {
		return 1;
	return 0;

Change History (0)

Note: See TracTickets for help on using tickets.