The following invalid testcase triggers a broken error message ('tree_list' not supported by dump_decl) and an ICE since GCC 4.1.0:
============================ namespace X { struct A; } namespace Y { struct A; } namespace Z { struct A; } using namespace X; using namespace Y; using namespace Z; A* p; ============================ bug.cc:9: error: reference to 'A' is ambiguous #'tree_list' not supported by dump_decl#<declaration error> tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in location_of, at cp/error.c:2211 Please submit a full bug report, [etc.] -- Summary: [4.1/4.2/4.3 regression] ICE and broken diagnostic with ambiguous class name Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35112