Article View: gnu.g++.bug
Article #1096You bug report
From: Mike Stump
Date: Fri, 06 Nov 1992 08:53
Date: Fri, 06 Nov 1992 08:53
42 lines
2407 bytes
2407 bytes
Please do not include uuencoded files, or shar files, or tar files... Reduce the problem into a single short file if you can. g++ does not yet support the infinite link cycle type templates. What this means is that in files that use templates, the compiler has to have had seen all the relevant code for the template instantiation, so that it has a chance to generate code from it. > Date: Tue, 21 Jul 92 11:16:29 EDT > From: bnell@cadillac.siemens.com (Bill Nell) > Message-Id: <9207211516.AA04895@cadillac.siemens.com> > To: bug-gcc@prep.ai.mit.edu > Here is a bug I found in gcc 2.1 it seems to have something to do > with templates (in C++). I'm assuming that gcc 2.1 actually supports > templates because it compile my file without complaining. Anyway, > after compiling I looked at my .o file and it was a whopping 64 bytes > long. Obviously it was too small to hold all the class info. But > I tried to link it with a test program anyway and found not-surprisingly > that it couldn'y find any of the member functions I used from that class. > Unfortunately I don't know how gcc was configured when it was installed > so I can't give you that info. I also noticed this bug on a port of > gcc to the atari st. At first I thought it was a problem with the port > but then I tried it at work on my sparc and got the same results. > Here is a listing of my source and the commands I used to compile. > (If you need any more info then please mail me back) > Thanks, > Bill > begin 644 bug.tar.Z > M'YV0=/+ *3-GC)PT<.@ 6,BPH<.'$"-*G$BQ8D40&&W0H $"0,88,6YTQ%C# > MQ@T9(S&JE &2!@R2,F;,@!%3XPR5-F;4N.'1HL^?0(,*'4JTJ-&C2),J7<J4 > MZ12#".F F$,GC!PZ9<B >.,&!)4Z94 HJ<,&!$L0,6#HJ!%#AXP<:'/DD*' > M3!DY<JRFT>'GQ1PY8U[0:0/'!X@S8\: :&%GL6*K>?.X2-R@@0(I9<*02>/F ... > M>>P)AVS_U\YT!WVMONLO8(!#QYOD3NO.?G^@XX#R8XG7)8>:6(%EE1AHI58; > $B%BU!6S_ > > end
Technical Details
Message-ID:
<9211060853.AA02492@cygnus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!mrsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!mrs From: mrs@cygnus.com (Mike Stump) Newsgroups: gnu.g++.bug Subject: You bug report Message-ID: <9211060853.AA02492@cygnus.com> Date: 6 Nov 92 08:53:25 GMT Article-I.D.: cygnus.9211060853.AA02492 Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 42 Approved: bug-g++@prep.ai.mit.edu