From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 23 07:06:34 1998 Subject: Re: octave-2.1.3 building on hpux-10.20, gcc-2.7.2 From: U-E59264-Osman Buyukisik To: jwe at bevo dot che dot wisc dot edu Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 23 Jan 1998 08:06:28 -0500 (EST) Now changed to gcc 2.8.0 ! Having problems in liboctave : ... c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall cmd-hist.cc file-stat.h: In method `file_stat::operator void *() const': In file included from cmd-hist.cc:57: file-stat.h:117: static_cast from `int' to `void *' file-stat.h:117: warning: control reaches end of non-void function `file_stat::operator void *() const' cmd-hist.cc: In method `class string_vector gnu_history::do_list(int, bool)': cmd-hist.cc:354: warning: variable `int end' might be clobbered by `longjmp' or `vfork' cmd-hist.cc:362: warning: variable `int k' might be clobbered by `longjmp' or `vfork' cmd-hist.cc:363: warning: variable `int i' might be clobbered by `longjmp' or `vfork' Array.h:70: warning: variable `class basic_string,__default_alloc_template > * this' might be clobbered by `longjmp' or `vfork' make[2]: *** [cmd-hist.o] Error 1 make[2]: Leaving directory `/home/buyuk/octave-2.1.3/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/home/buyuk/octave-2.1.3' make: *** [all] Error 2 This looks like a problem from gcc-2.7.2 - > gcc-2.8 ? operator void* () const { return ok () ? static_cast (-1) : static_cast (0); } if I change the line to : (void *) (-1) : (void *) (0); } It compiles the file. But is it correct?? There more static_cast problems in other files as well. :-( I thought files compiled ok with gcc-2.7.2 should still compile with the new version but it does not seem that way! Osman