rfg@MCC.COM (Ron Guilmette) (02/11/89)
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;
}