This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35112] New: [4.1/4.2/4.3 regression] ICE and broken diagnostic with ambiguous class name
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2008 20:11:47 -0000
- Subject: [Bug c++/35112] New: [4.1/4.2/4.3 regression] ICE and broken diagnostic with ambiguous class name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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