| Summary: | Wrong error message in base initialization | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Nathan Ridge <zeratul976> |
| Component: | cdt-parser | Assignee: | 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: | |||
The classification of problem-bindings created by the parser could be improved. |
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)?