🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1623

Forgotten * (v 1.32)

#1623
From: P{r Emanuelsson
Date: Fri, 20 Jan 1989 12:13
19 lines
1024 bytes
A little slip of my fingers produced the following code:
--
typedef void (vfunp)();   // This should read "typdef void (*vfunp)();"

extern void foo(vfunp);
--
And the compilation result:

1% g++ -c -v bug.cc
g++ version 1.32.0
 /usr/local/lib/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix
bug.cc /tmp/cca01169.cpp
GNU CPP version 1.30
 /usr/local/lib/gcc-c++ /tmp/cca01169.cpp -quiet -dumpbase bug.cc -noreg
-version -o /tmp/cca01169.s
GNU C++ version 1.32.0 (68k, MIT syntax) compiled by CC.
bug.cc:3: Segmentation violation
g++: Program c++ got fatal signal 11.
2%
Technical Details
Message-ID: <8901201213.AA04226@rainier.liu.se>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!pollux!ti-csl!cs.utexas.edu!wasatch!mailrus!purdue!gatech!tut.cis.ohio-state.edu!isy.liu.se!pell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!pollux!ti-csl!cs.utexas.edu!wasatch!mailrus!purdue!gatech!tut.cis.ohio-state.edu!isy.liu.se!pell
From: pell@isy.liu.se (P{r Emanuelsson)
Newsgroups: gnu.g++.bug
Subject: Forgotten * (v 1.32)
Message-ID: <8901201213.AA04226@rainier.liu.se>
Date: 20 Jan 89 12:13:34 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 19