Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336438 - Wrong error message in base initialization
Summary: Wrong error message in base initialization
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-05 23:00 EST by Nathan Ridge CLA
Modified: 2020-09-04 15:27 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2011-02-05 23:00:07 EST
For the following code:

class S {};
class T {};

struct base
{
    base(S) {}
};

struct derived : public base
{
    derived(T) : base(T) {}  // ERROR HERE
}; 

The error message on the indicated line is:

Symbol 'base' could not be resolved

Wouldn't a more reasonable error message be something like:

No match for call to base::base(T). Candidates are: base::base(S)?
Comment 1 Markus Schorn CLA 2011-02-09 07:29:36 EST
The classification of problem-bindings created by the parser could be improved.