[Gc] trivial GC bug in C++ under g++ 4.1.0

Michael Vanier mvanier at cs.caltech.edu
Thu Mar 2 16:47:45 PST 2006


When I use the (just-released) g++ 4.1.0 compiler with the Boehm GC, I get 
this error message:

gc_cpp.h:183: error: extra qualification 'gc::' on member 'operator delete []'

If I change lines 182-4 from:

#   ifdef GC_PLACEMENT_DELETE
       inline void gc::operator delete[]( void*, void* );
#   endif

to:

#   ifdef GC_PLACEMENT_DELETE
       inline void operator delete[]( void*, void* );
#   endif

everything works.  Could some real C++ experts comment on why this is, and if 
this is the correct fix?

Mike



More information about the Gc mailing list