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 )
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; }
Note: See
TracTickets for help on using
tickets.
Update code to use 0p