Path: 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 From: Tim Day 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 +-----------------------------------------------------------------------------+