Article View: gnu.gcc.bug
Article #34Gcc 2.2.2 Bug
From: Paolo Baiardi (019) 931872
Date: Mon, 02 Nov 1992 12:04
Date: Mon, 02 Nov 1992 12:04
55 lines
1831 bytes
1831 bytes
Installation:
-------------
Machine : Sparc-Sun4 OS: sunos4.1.3
Gcc : 2.2.2
G++lib : 2.2
config. : configure --target=sun4 [ no special flags ]
-------------
Bug.cc:
#######
class foo
{
int bar;
static int foonum;
foo(int);
~foo();
static void init() { foonum=0 };
};
foo::foo(int x)
{
bar = x , foonum++;
}
foo:~foo()
{
foonum--;
}
main()
{
foo::init();
}
#######
g++ bug.cc --> ld: undefined symbol __5foo$foonum. Error Code 2
I suspect that the bug is *not* in Gcc/G++, but rather in our 'ld'.
Thanks,
Paolo
--
+-----------------------------------------------------------------------------+
| Paolo Baiardi <baiardi@dist.dist.unige.it> |
| PhD Student - Genova University - Italy |
| +39 19 488096 [ Home #1] |
| +39 19 801852 [ Home #2] |
| +39 10 353 2727 [ Office ] |
| Current Activity: |
| "I work for the county out on 95 |
| All day I hold a red flag and watch the traffic pass me by |
| In my head a keep a picture of a pretty little miss |
| Someday Mister I'm gonna lead a better life than this" |
| [ Working on a highway - Bruce Springsteen ] |
+-----------------------------------------------------------------------------+
Technical Details
Message-ID:
<9211021204.AA07242@dist.dist.unige.it>Path:
arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dist.dist.unige.it!baiardiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dist.dist.unige.it!baiardi From: baiardi@dist.dist.unige.it (Paolo Baiardi (019) 931872) Newsgroups: gnu.gcc.bug Subject: Gcc 2.2.2 Bug Message-ID: <9211021204.AA07242@dist.dist.unige.it> Date: 2 Nov 92 12:04:08 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 55 Approved: bug-gcc@prep.ai.mit.edu