gordon%stats.ucl.ac.uk@NSS.CS.UCL.AC.UK (Gordon Joly Statistics UCL) (03/17/89)
On a SUN-3/160, with g++ 1.34 built with gcc 1.34 (libg++ 1.34). Config.gcc sun3 (no FPA, SunOS 3.4) We have noticed that the compiler core dumps when trying to deal with functions with an incomplete (or missing?) argument list. (A problem of funtion declaration is mentioned is "known bugs".) karl:/stats/staff/karl/gordon/c++[9] cat -n hello.cc 1 #include <stdio.h> 2 #include <stream.h> 3 4 char* abc(int a) 5 { 6 return "hello" ; 7 } 8 9 10 main() 11 { 12 cout << abc ; // Rubbish 13 } karl:/stats/staff/karl/gordon/c++[10] make -n g++ -g -v -c hello.cc g++ -o hello hello.o -lg++ -lm karl:/stats/staff/karl/gordon/c++[11] make g++ -g -v -c hello.cc g++ version 1.34.0 /stats/staff/karl/gordon/GNU/usr/ucl/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 hello.cc /tmp/cca00387.cpp GNU CPP version 1.34 /stats/staff/karl/gordon/GNU/usr/ucl/lib/gcc-c++ /tmp/cca00387.cpp -quiet -dumpbase hello.cc -noreg -version -G -o /tmp/cca00387.s GNU C++ version 1.34.0 (68k, MIT syntax) compiled by GNU C version 1.34. In function int main (): hello.cc:12: Segmentation violation Program c++ got fatal signal 11. *** Error code 1 Stop. Surface mail: Dr. G.C.Joly, Department of Statistical Science, University College London, Gower Street, LONDON WC1E 6BT, U.K. E-mail: | Tel: +44 1 387 7050 JANET (U.K. network) gordon@uk.ac.ucl.stats | extension 3636 (Arpa/Internet form: gordon@stats.ucl.ac.uk)| FAX: +44 1 387 8057 Relays: ARPA @nss.cs.ucl.ac.uk | EAN: @ean-relay.ac.uk | CSNET: %nss.cs.ucl.ac.uk@relay.cs.net | BITNET: %ukacrl.bitnet@cunyvm.cuny.edu, @ac.uk EARN: @ukacrl.bitnet, @AC.UK, @uk.ac.earn-relay By uucp/Usenet: ....!uunet!mcvax!ukc!stats.ucl.ac.uk!gordon