This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]