i386-cygwin32: C++ template codegen bug

Mumit Khan khan@xraylith.wisc.edu
Mon Oct 27 21:19:00 GMT 1997


While trying compile some local (simple) code for a i386-cygwin32, I came
across some bizarre template linking errors; after a bit of investigation
I believe it has to do with gcc *not* generating "weak" symbols, instead
creating out of line copies of inline functions with extern linkage. 

I'm attaching the example code (< 10 lines of code in two different
files). Must use -g to show the problem. 

I'm lost in the myriad of symbols that define the symbol generation
(SUPPORTS_ONLY_ONLY, SUPPORTS_WEAK, MAKE_ONE_DECL, ....). The answer lies
in one of those, but damned if I can find it.

Thanks
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/


More information about the Gcc-bugs mailing list