[Bug c++/42021] Misleading error message when inherited typedefs cause ambiguity
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 11 18:48:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42021
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-06-11
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
Target Milestone|--- |4.9.0
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is essentially fixed:
42021.C: In member function ‘void BreadSlicer::print()’:
42021.C:26:19: error: reference to ‘P3’ is ambiguous
Policies::P3::doPrint();
^
42021.C:10:21: note: candidates are: typedef struct Policy1 B::P3
typedef Policy1 P3;
^
42021.C:14:21: note: typedef struct Policy2 C1::P3
typedef Policy2 P3;
^
Nit: we emit the diagnostic twice. I have a patchlet for that:
More information about the Gcc-bugs
mailing list