Opened 6 years ago

Last modified 22 months 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:
Cc:

Description (last modified by Thierry Delisle)

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

void next() {}

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

Change History (1)

comment:1 Changed 22 months ago by Thierry Delisle

Description: modified (diff)

Update code to use 0p

Note: See TracTickets for help on using tickets.