Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328802 - eclipse failed to choose one of overloaded functions.
Summary: eclipse failed to choose one of overloaded functions.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 05:18 EDT by Vasiliy Dybala CLA
Modified: 2010-11-04 09:23 EDT (History)
1 user (show)

See Also:


Attachments
testcase + fix (7.16 KB, patch)
2010-11-04 09:06 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy Dybala CLA 2010-10-27 05:18:30 EDT
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
Comment 1 Markus Schorn CLA 2010-11-04 09:06:38 EDT
Created attachment 182366 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-11-04 09:07:18 EDT
Fixed in 8.0 > 20101104.