[LLVMbugs] [PATCH] fix llvm::Interval name clash

Chris Lattner sabre at nondot.org
Mon Jun 21 06:36:24 PDT 2004


On Mon, 21 Jun 2004, Vladimir Prus wrote:
> Ok, I think I even know why it used to work. The crash happened when instead
> of destructor of the latter class the desctructor for the former class was
> called. The destructor is the only method which is present in both classes
> and has the same name and parameter list. Further, in both classes destructor
> is implicitly defined and so is inline. As the result, gcc either fully
> inlines them, or generates weak symbol -- so there's no linker error during
> static linking. And with dynamic linking... everything crashes.

That makes sense.  It's good to be fixed in any case.  :)

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-bugs mailing list