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: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Feb 2005 06:22:57 -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 lerdsuwa at gcc dot gnu dot org 2005-02-28 06:22 -------
If you want a work around, simply use this in the first 'friend'
declaration:
friend class util::persistent_object_manager;
There is still uncertainty about whether name from 'using'
declaration/directive is allowed (DR138) so your workaround
may not work in the future.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19948