------- Comment #2 from rankincj at yahoo dot com 2006-03-29 21:10 ------- The sample code works OK with the following compilers:
$ g++ -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux Thread model: posix gcc version 4.0.2 20051125 (Red Hat 4.0.2-8) $ g++ -v Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs Configured with: /usr/src/gcc-3.4.4/configure --prefix=/usr --enable-languages=c,c++ --enable-version-specific-runtime-libs --enable-threads=posix --with-gnu-binutils --with-system-zlib --enable-shared --enable-nls Thread model: posix gcc version 3.4.4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26922