Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in g++ 1.32.0 Message-ID: <8902102127.AA20816@riunite.aca.mcc.com> Date: 10 Feb 89 21:27:14 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22 The following short piece of code causes g++ 1.32.0 to segfault in c++ on a sun3. This code was adapted from the fib.cc file in libg++ 1.32.0 (which also gets a segfault when being compiled). The segfault only occurs if the -fmemoize-lookups option is used. ===================================================================== struct Integer { Integer(); ~Integer(); }; Integer Private_Error = (unsigned) 0; struct Extended_Int { Integer Base; }; Extended_Int Mult_Ext() { Extended_Int Temp; return Temp; }