我知道它已经出现了无数次,但这次是自动生成的代码:
class testGetter{
    testGetter * ptr; // wrote this
public:
// this is autogenerated by eclipse
    const testGetter*& getPtr() const {
        return ptr;
    }
    void setPtr(const testGetter*& ptr) {
        this->ptr = ptr;
    }
};
我在 Windows 7 mingw - g++ 版本4.7.0
那么它是 eclipse (juno) 模板中的错误吗?
编辑:编译器调用:
g++ -O0 -g3 -Wall -c -fmessage-length=0 -fpermissive -o Visitor.o "..\\Visitor.cpp"
编辑 2013.06.12:我应该补充说我在收到反馈后报告了这件事