🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: g++ core dump from improper use of extern "C"

#2144
From: T.Day
Date: Tue, 09 Jan 1990 12:23
17 lines
1133 bytes
From: Tim Day <T.Day@uk.ac.ucl.cs>

Piercarlo "Peter" Grandi writes:
> using 'struct some *' before having seen 'struct some {...'
> is legal and without problem in both C and C++

Not quite.  You have to say
	struct frob;
before you can use pointers or references to frob.
Inserting this line at the start of your example code causes it compile
OK (on a Sun3).  The core dump instead of error message is still a bug though.

+-----------------------------------------------------------------------------+
Tim Day                           | Meet every second in life as challenge;
Department of Photogrammetry      | Respond fully to whatever happens
UCL, Gower St., London  WC1E 6BT  |  without anxiety, or complaint, or clinging
+-----------------------------------------------------------------------------+
Technical Details
Message-ID: <494@ucl-cs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!ukc!kl-cs!nott-cs!ucl-cs!T.Day

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!ukc!kl-cs!nott-cs!ucl-cs!T.Day
From: T.Day@ucl-cs.UUCP
Newsgroups: gnu.g++.bug
Subject: Re: g++ core dump from improper use of extern "C"
Message-ID: <494@ucl-cs.UUCP>
Date: 9 Jan 90 12:23:36 GMT
Sender: T.Day@ucl-cs.UUCP
Lines: 17