Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!mcsun!ukc!icdoc!zmact60 From: zmact60@doc.ic.ac.uk (I S Roberts) Newsgroups: comp.lang.c++ Subject: Bug in g++ 1.37.0 Keywords: g++ bug Message-ID: <1868@gould.doc.ic.ac.uk> Date: 8 May 90 18:16:12 GMT Distribution: comp Organization: Dept. of Computing, Imperial College, London, UK. Lines: 39 The following code causes my g++ 1.37.0 to crash with the error 't3.cc:12: Segmentation violation' 'g++: Program cc1plus got fatal signal 11.' --- cut here --- typedef eek void (*)() ; class foo { public: foo(void (*f)()) ; } ; foo::foo(eek f) { } --- second cut --- Can someone please verify this and, if possible, check any later versions of g++. P.S. I Known this is not valid c++ code (should be typedef void (*eek)()). Could someone also shed some light on the following error message; In method CategoryEditor::CategoryEditor (class CategoryList *): bad argument 1 for function `EventPushButton::EventPushButton (const char *, auto void (*)(class Event &))' (type was void (class CategoryEditor ::*)(class Event &)) in base initialization for class `EventPushButton' In particular what does the `auto` mean and why I might be getting the error. Ian Roberts. Imperial College. London. zmact60@doc.ic.ac.uk --- Disclaimer: I'm only a student so nothing I say counts...