[Bug c++/59900] isnan signals FPE invalid operation when given a NaN

2014-01-21 Thread cam888eron at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59900

--- Comment #1 from Cameron MacMinn  ---
Created attachment 31913
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31913&action=edit
preprocessed file 2nd

needs 2 source files, hence 2 .ii preprocessed files


[Bug c++/59900] New: isnan signals FPE invalid operation when given a NaN

2014-01-21 Thread cam888eron at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59900

Bug ID: 59900
   Summary: isnan signals FPE invalid operation when given a NaN
   Product: gcc
   Version: 4.4.6
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: cam888eron at yahoo dot com

Created attachment 31912
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31912&action=edit
preprocessed file 1st

Possible g++ problem.  isnan signals
  FPE invalid operation when given a NaN.

  (Ditto isnanf.  I found that using g++ 4.1.2, where isnan
   works but isnanf signals FPE invalid operation, not shown.)

  If not g++ problem, any advice on which other .org
  to report problem to would be much appreciated, 'the
  assembler, the linker or the C library', etc.  Thanks.

  Command line
  % ( g++ -v -c -g -m64 -Wall -fpic -save-temps -o check4nan.o check4nan.cc ;
  g++ -m64 -shared check4nan.o -o libnan.so ;
  g++ -c -g -m64 -Wall -fpic -save-temps -o nan.o nan.cc ;
  g++ -m64 -L. -lnan -o nan nan.o ;
  setenv LD_LIBRARY_PATH .:${LD_LIBRARY_PATH} ;
  ./nan )
  says:

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-c' '-g' '-m64' '-Wall' '-fpic' '-save-temps' '-o'
'check4nan.o' '-shared-libgcc' '-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1plus -E -quiet -v -D_GNU_SOURCE
check4nan.cc -m64 -mtune=generic -Wall -fpic -g -fworking-directory
-fpch-preprocess -o check4nan.ii
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.4.6/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6

/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/x86_64-red
hat-linux
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-c' '-g' '-m64' '-Wall' '-fpic' '-save-temps' '-o'
'check4nan.o' '-shared-libgcc' '-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1plus -fpreprocessed
check4nan.ii -quiet -dumpbase check4nan.cc -m64 -mtune=generic -auxbase-strip
check4nan.o -g -Wall -version -fpic -o check4nan.s
GNU C++ (GCC) version 4.4.6 20110731 (Red Hat 4.4.6-3) (x86_64-redhat-linux)
compiled by GNU C version 4.4.6 20110731 (Red Hat 4.4.6-3), GMP
version 4.3.1, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 42c2a139506c57f2f1525b40cf548e53
COLLECT_GCC_OPTIONS='-v' '-c' '-g' '-m64' '-Wall' '-fpic' '-save-temps' '-o'
'check4nan.o' '-shared-libgcc' '-mtune=generic'
 as -V -Qy --64 -o check4nan.o check4nan.s
GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version
version 2.20.51.0.2-5.28.el6 20091009
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_6
4-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-
redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-re
dhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redh
at-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-
linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/:/lib/../l
ib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../:/lib/:
/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-c' '-g' '-m64' '-Wall' '-fpic' '-save-temps' '-o'
'check4nan.o' '-shared-libgcc' '-mtune=generic'
isnan  !!! signal handler - caught FPE
!!! Floating point invalid operation


[Bug c++/53614] g++ undefined symbols static const data members conditional assignment

2012-06-08 Thread cam888eron at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53614

--- Comment #2 from Cameron MacMinn  2012-06-08 
15:18:59 UTC ---
Created attachment 27587
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27587
to verify correctness using -DWORKAROUND, else ignore


[Bug c++/53614] g++ undefined symbols static const data members conditional assignment

2012-06-08 Thread cam888eron at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53614

--- Comment #1 from Cameron MacMinn  2012-06-08 
15:17:48 UTC ---
Created attachment 27586
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27586
2nd output of -save-temps


[Bug c++/53614] New: g++ undefined symbols static const data members conditional assignment

2012-06-08 Thread cam888eron at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53614

 Bug #: 53614
   Summary: g++ undefined symbols static const data members
conditional assignment
Classification: Unclassified
   Product: gcc
   Version: 4.4.6
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: cam888e...@yahoo.com


Created attachment 27585
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27585
output of -save-temps

I wanted to attach a 2nd file, main.ii.  Also a 3rd file, Foo.cc.
  Looks like this only allows 1 attachment.  I will try to send later.

  main.ii should let you duplicate ld error undefined symbols.
  Foo.cc if you wish to verify correctness using
  -DWORKAROUND, otherwise please ignore it.  Thanks.

% echo ; g++ -v -save-temps -m64 -c Foo.cc ; echo ; g++ -v -save-temps -m64
-odefineMe main.cc Foo.o

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-m64' '-c' '-shared-libgcc'
'-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1plus -E -quiet -v -D_GNU_SOURCE
Foo.cc -m64 -mtune=generic -fpch-preprocess -o Foo.ii
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.4.6/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6

/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-redhat-linux/4.4.6/include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-m64' '-c' '-shared-libgcc'
'-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.6/cc1plus -fpreprocessed Foo.ii
-quiet -dumpbase Foo.cc -m64 -mtune=generic -auxbase Foo -version -o Foo.s
GNU C++ (GCC) version 4.4.6 20110731 (Red Hat 4.4.6-3) (x86_64-redhat-linux)
compiled by GNU C version 4.4.6 20110731 (Red Hat 4.4.6-3), GMP
version 4.3.1, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 42c2a139506c57f2f1525b40cf548e53
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-m64' '-c' '-shared-libgcc'
'-mtune=generic'
 as -V -Qy --64 -o Foo.o Foo.s
GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version
version 2.20.51.0.2-5.28.el6 20091009
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-m64' '-c' '-shared-libgcc'
'-mtune=generic'

Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-m64' '-odefineMe' '-shared