Opened 8 years ago
Last modified 3 years ago
#66 new defect
Function and variable name collision for if — at Initial Version
Reported by: | Thierry Delisle | Owned by: | |
---|---|---|---|
Priority: | major | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
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; }
Note:
See TracTickets
for help on using tickets.