This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
- From: "fang at csl dot cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2005 06:53:06 -0000
- Subject: [Bug c++/19948] [4.0/4.1 Regression] ICE: tree check: expected class 'declaration', have 'exceptional' (error_mark) in pushtag, at cp/name-lookup.c:4658
- References: <20050214073759.19948.fang@csl.cornell.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fang at csl dot cornell dot edu 2005-02-27 06:53 -------
Workaround discovered (shortly after I asked for one, fancy that!)
Declaring:
using util::persistent_object_manager;
inside the 'memory' namespace before the first friend declaration (after line 5) results in correct output
for the examples listed above. The using declaration prevents (I think) injection of the friend class
declaration into the 'memory' namespace and further confusion. Not a bad idea in practice, actually.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948