Community
Participate
Working Groups
Build Identifier: 201010180004 1. write code: class cl{}; class cl1 : public cl{}; class B { public: cl& get(); }; class D : public B { public: using B::get; cl1& get(); }; void func(cl1&); void test(D& c) { func(c.get()); // error. } 2. on the line func(c.get()); eclipse says "invalid arguments.", but this code is valid (C++ standard section 10.3.5) and compiles successfully. Reproducible: Always
Created attachment 182366 [details] testcase + fix
Fixed in 8.0 > 20101104.
*** cdt cvs genie on behalf of mschorn *** Bug 328802: Overriding a method which is declared with a using declaration. [*] AST2CPPTests.java 1.373 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java?root=Tools_Project&r1=1.372&r2=1.373 [*] FunctionCost.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/FunctionCost.java?root=Tools_Project&r1=1.13&r2=1.14 [*] CPPVisitor.java 1.143 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPVisitor.java?root=Tools_Project&r1=1.142&r2=1.143 [*] CPPScope.java 1.60 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPScope.java?root=Tools_Project&r1=1.59&r2=1.60