🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

surefire way to make g++ core dump

#1475
From: Ken Yap
Date: Wed, 05 Oct 1988 01:42
42 lines
1165 bytes
Problem:

Refer to a class function without the ().

Session log:

[cursa 33] g++ -g -v bug1.cc
g++ version 1.25.1
 /u/cs454/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix bug1.cc /tmp/cca21448.cpp
GNU CPP version 1.25.1
 /u/cs454/lib/gcc-c++ /tmp/cca21448.cpp -quiet -dumpbase bug1.cc -noreg -version-G -o /tmp/cca21448.s
GNU C++ version 1.25.1 (68k, MIT syntax) compiled by GNU C version 1.25.
In function int main ():
bug1.cc:13: Segmentation violation
g++: Program c++ got fatal signal 11.

Program:

class foo
{
	int	i;
public:
	int	proc();
};

main()
{
	foo	x;
	int	i;

	i = x.proc;
}

Version and environment:

g++ version 1.25.1

tm.h = tm-sun3.h
md = m68k.md
aux-output.c = output-m68k.c

sun 3-50, Sun Unix 3.4
Technical Details
Message-ID: <8810050142.AA21456@cursa.cs.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!ken

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!CS.ROCHESTER.EDU!ken
From: ken@CS.ROCHESTER.EDU (Ken Yap)
Newsgroups: gnu.g++.bug
Subject: surefire way to make g++ core dump
Message-ID: <8810050142.AA21456@cursa.cs.rochester.edu>
Date: 5 Oct 88 01:42:40 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 41