[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

fang at csl dot cornell dot edu gcc-bugzilla@gcc.gnu.org
Sun Feb 27 17:20:00 GMT 2005

------- 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!)


        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.  



More information about the Gcc-bugs mailing list