The program is something similar to this:
class A {
const A& a;
public:
A(const A& a) : a(a) {}
};
int main(int argc, char** argv) {
A a(a);
}
The program compiles and runs. However, sometimes the Eclipse debugger freezes. Commenting out the line A a(a) fixes the problem.
Is it something in the A a(a) line that is dangerous?