This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: V3 static data in classes vs AIX


David Edelsohn <dje@watson.ibm.com> writes:

| 	Investigating this further, GCC only produces the common symbol if
| the static class member actually is defined, not just referenced.  In
| other words,
| 
| class foo {
| public:
|         static int i;
| };
| 
| void p()
| {
|         foo::i = 99;
| }
| 
| does not produce a common symbol, only the reference.

Excuse my naivety, but is there any reason it -should- produce the
common symbol? 

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]