From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 23 07:29:32 1998 Subject: Re[2]: octave-2.1.3 building on hpux-10.20, gcc-2.7.2 From: "PETER HOPFGARTNER" To: Date: Fri, 23 Jan 98 14:20:58 +0100 g++, as almost any other C++ compiler is in a state of flux. ANSI C++ is in the final draft state, so there hasn't benn yet any real standard and compilers have to be adapted. For a hint of what changed you can look at http://www.cygnus.com/egcs, where you will find also a machine-readable copy of the C++-standard draft. Peter ______________________________ Reply Separator _________________________________ Subject: Re: octave-2.1.3 building on hpux-10.20, gcc-2.7.2 Author: at NOVARALINK Date: 1/23/98 7:06 AM 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_CO IG_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::o rator 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 fork' cmd-hist.cc:362: warning: variable `int k' might be clobbered by `longjmp' or `v rk' cmd-hist.cc:363: warning: variable `int i' might be clobbered by `longjmp' or `v rk' Array.h:70: warning: variable `class basic_string, default_alloc_template > * this' might be clobbered by `longjmp' or `vf k' 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