Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!tut!uta!kielo!av From: av@kielo.uta.fi (Arto V. Viitanen) Newsgroups: comp.lang.c++ Subject: Re: Bug in g++ 1.37.0 Message-ID: Date: 9 May 90 05:46:19 GMT References: <1868@gould.doc.ic.ac.uk> Sender: news@uta.fi Reply-To: av@uta.fi (Arto Viitanen) Distribution: comp Organization: University of Tampere, Finland Lines: 37 In-reply-to: zmact60@doc.ic.ac.uk's message of 8 May 90 18:16:12 GMT In article <1868@gould.doc.ic.ac.uk> zmact60@doc.ic.ac.uk (I S Roberts) writes: ISR> The following code causes my g++ 1.37.0 to crash with the error ISR> 't3.cc:12: Segmentation violation' ISR> 'g++: Program cc1plus got fatal signal 11.' ISR> --- cut here --- ISR> typedef eek void (*)() ; ISR> class foo { ISR> public: ISR> foo(void (*f)()) ; ISR> } ; ISR> foo::foo(eek f) ISR> { ISR> } ISR> --- second cut --- ISR> Can someone please verify this and, if possible, check any later ISR> versions of g++. I tried it with g++ version 1.37.1 (based on GCC 1.37) and reseived errors t3.cc:1: parse error before `void' t3.cc:8: `eek' undeclared, outside of functions t3.cc:8: parse error before `f' t3.cc:9: argument list for `foo' does not match any in class t3.cc:11: Segmentation violation g++: Program cc1plus got fatal signal 11. so error is still there .. -- Arto V. Viitanen email: av@kielo.uta.fi University Of Tampere, av@ohdake.uta.fi Finland