Re: C++ compiler -- does it work?

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Tue, 24 Jan 95 14:42:03 -0800


> Ok, I know this may be somewhat unrelated to the main focus of this
> group, but when I compiled some code under 5.3, I got a cool little
> segment fault. I managed to write a small program that produces this
> fault and it boils down to a static variable inside a method call.
>
> Is this not supported by the C++ language? Here's the code

Congratulations, you found a bug in ld. I
forwarded your report to the appropriate person,
who has just fixed it, although I'm not sure when
the next version of the OS will be released.

A easy workaround is to create a dummy static instance
of the class outside of the routine.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:53 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.