set_new_handler

Alexander Schiemann aschiem@count.math.uni-sb.de
Wed Oct 14 14:09:00 GMT 1998


Hi,

set_new_handler ignores requests to reset the new-handler to 0
but sets it to some other value. 

<begin example>

#include <new.h>
#include <iostream.h>

int main()
{
set_new_handler(0);

if(set_new_handler(0)!=0)
  cout<<"new-handler was not set to 0 by the first `set_new_handler'"<<endl;
};
<end example>

<begin shell protokol>
 -> g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

 -> g++ -Wall -g set_new_handler.cc

 -> a.out
new-handler was not set to 0 by the first `set_new_handler'

<end shell protokol>

System:
HOSTTYPE=i486
MACHTYPE=i486-pc-linux-gnu
OSTYPE=linux-gnu

I do not have the 'configure' arguments for gcc at hand
but I would try to provide them if the bug cannot be reproduced
otherwise 

Best Regards
Alexander Schiemann



More information about the Gcc-bugs mailing list