language: C++ 4.7.2 (gcc-4.7.2)
date: 689 days 16 hours ago
link:
visibility: public
1
2
3
4
5
6
7
void foo(){}
 
 
int main() {
if (1, true) {/*...*/}
if(1, foo()) {/*...*/}
}
prog.cpp: In function ‘int main()’:
prog.cpp:5: warning: left-hand operand of comma has no effect
prog.cpp:6: warning: left-hand operand of comma has no effect
prog.cpp:6: error: could not convert ‘(0, foo())’ to ‘bool’