Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336438

Summary: Wrong error message in base initialization
Product: [Tools] CDT Reporter: Nathan Ridge <zeratul976>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.