Article View: gnu.g++.bug
Article #14g++ bug
From: Neil Donahue
Date: Fri, 30 Oct 1992 04:59
Date: Fri, 30 Oct 1992 04:59
81 lines
2616 bytes
2616 bytes
Howdy,
I made a silly programming error yesterday and paid dearly
for it. The error was to declare a function of the form
void foo(int i, int i);
while the price was to get an internal compiler error, rather than a
gentle reprimand in the form of a compilation error. As a result, it
took me quite some time to track this down. The error is simple
enough that it reall ought to be correctly flagged!
---
Neil M. Donahue
Atmospheric Research Project
Harvard University
40 Oxford St. Cambridge, MA 02138
(617) 495-5922
(617) 495-4902 (Fax)
nmd@molly.harvard.edu (NeXTMail)
compiler output:
-------------
make compError.o
cc -D_NeXT -D_gcc1 -I ../Fitting -I /Users/nmd/Unix/include -Wall -g
-v -c -o compError.o compError.C
Reading specs from /lib/m68k/specs
gcc version 1.93 (68k, MIT syntax)
/lib/m68k/cpp -lang-c++ -v -D_NeXT -D_gcc1 -I ../Fitting -I
/Users/nmd/Unix/include -D__GNU__ -undef -D__GNUC__=2 -D__GNUG__
-D__cplusplus -Dmc68000 -Dm68k -DNeXT -Dunix -D__MACH__
-D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -D__mc68000__ -D__m68k__
-D__NeXT__ -D__unix__ -D__MACH__ -D__BIG_ENDIAN__
-D__ARCHITECTURE__="m68k" -Wall compError.C /usr/tmp/cc002820.cpp
GNU CPP version 1.93 (68k, MIT syntax)
/lib/m68k/cc1plus /usr/tmp/cc002820.cpp -quiet -dumpbase
compError.cc -g -Wall -version -o /usr/tmp/cc002820.s
GNU C++ version 1.39.1 (based on GCC 1.39) (68k, MIT syntax) compiled
by GNU C version NeXT devkit-based CPP 3.0.
default target switches: -m68020 -mc68020 -m68881 -mbitfield
cc: Internal compiler error: program cc1plus got fatal signal 10
*** Exit 1
Stop.
source for compError.C
--------------------------
typedef unsigned subT;
typedef double buffT;
class matrixStorage {
public:
virtual ~matrixStorage(){};
virtual const buffT symmetricInsert(const subT, const subT,
const buffT) = 0;
}; //matrixStorage
class nothingStorage : public matrixStorage{
public:
nothingStorage(){ }
~nothingStorage(){ }
const buffT symmetricInsert( const subT i, const subT i,
const buffT val ){
return val;
}
}; //nothing
Technical Details
Message-ID:
<9210301459.AA06200@molly.harvard.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!molly.harvard.edu!nmdShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!molly.harvard.edu!nmd From: nmd@molly.harvard.edu (Neil Donahue) Subject: g++ bug Message-ID: <9210301459.AA06200@molly.harvard.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 30 Oct 1992 04:59:36 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 84