| Summary: | eclipse failed to choose one of overloaded functions. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vasiliy Dybala <dibalavs> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Markus Schorn <mschorn.eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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