language: C++ 4.7.2 (gcc-4.7.2)
date: 460 days 6 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
class Foo {
public:
  const int SomeFunction() { return iValue; }
private:
  int iValue;
};
 
int main() {
  Foo * foo = new Foo() ;
  foo->SomeFunction()->AnotherFunction();
  return 0;
}
prog.cpp: In function ‘int main()’:
prog.cpp:10: error: base operand of ‘->’ is not a pointer