http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60845
Bug ID: 60845 Summary: print original type for typedef classes in diagnostics Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org class A { }; typedef A B; void foo (B &a) { a.x(); } test.cc:4:5: error: ‘B’ has no member named ‘x’ a.x(); ^ It would be nicer as: test.cc:4:5: error: ‘B’ {aka: 'A'} has no member named ‘x’ a.x(); ^