[gnu.g++.bug] const bug

jjc@relay.eu.net (James Clark) (11/29/89)

$ cat bug.cc
const int SUCCESS = 0;

int main()
{
  int r;
  return r = 0, SUCCESS;
}
$ g++ -v bug.cc
gcc version 1.36.1 (based on GCC 1.36)
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dsparc
 -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ bug.cc /usr/tmp/cca01321.cpp
GNU CPP version 1.36
 /usr/local/lib/gcc-cc1plus /usr/tmp/cca01321.cpp -quiet -dumpbase bug.cc -versi
on -o /usr/tmp/cca01321.s
GNU C++ version 1.36.1 (based on GCC 1.36) (sparc) compiled by GNU C version 1.3
6.
default target switches: -mfpu -mepilogue
 /usr/local/lib/gcc-as -o bug.o /usr/tmp/cca01321.s
 /usr/local/lib/gcc-ld -e start -dc -dp /lib/crt0.o bug.o -lg++ /usr/local/lib/g
cc-gnulib -lc
bug.o: Undefined symbol _SUCCESS referenced from text segment
bug.o: Undefined symbol _SUCCESS referenced from text segment
$

James Clark
jjc@jclark.uucp