This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Is this a bug?
- From: "Lev Assinovsky" <LAssinovsky at algorithm dot aelita dot com>
- To: "Alexandre Oliva" <aoliva at redhat dot com>
- Cc: "Gcc-Bugs (E-mail)" <gcc-bugs at gcc dot gnu dot org>,"Gcc-Help (E-mail)" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 21 Aug 2003 13:21:56 +0400
- Subject: RE: Is this a bug?
The test case passed under gcc 3.3.1.
The problem was in lack of SOM weak support in gcc prior 3.3
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909
> -----Original Message-----
> From: Alexandre Oliva [mailto:aoliva@redhat.com]
> Sent: Tuesday, August 12, 2003 10:57 PM
> To: Lev Assinovsky
> Cc: Gcc-Bugs (E-mail); Gcc-Help (E-mail)
> Subject: Re: Is this a bug?
>
>
> On Aug 12, 2003, "Lev Assinovsky"
> <LAssinovsky@algorithm.aelita.com> wrote:
>
> > gcc 3.2.3, HPUX-11.00:
>
> > t.cpp: In static member function `static const item* A::f()':
> > t.cpp:6: warning: sorry: semantics of inline function
> static data `const item
> > arr[1]' are wrong (you'll wind up with multiple copies)
> > t.cpp:6: warning: you can work around this by removing
> the initializer
>
> It's not as much of a bug, but rather a limitation AFAIK imposed by
> the object file of the platform you've chosen. GCC requires weak
> symbols in order to implement this feature correctly, and 32-bit HP-UX
> object files don't support them (completely?).
>
> --
> Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
> CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist Professional serial bug killer
>