This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.0.2: errno conflict.
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Maxim Dementiev" <max at e-soft dot ru>
- Cc: <gcc at gcc dot gnu dot org>
- Date: 14 Dec 2001 16:15:05 -0200
- Subject: Re: GCC 3.0.2: errno conflict.
- Organization: GCC Team, Red Hat
- References: <NFBBJOCGALNKDBIDGEJDIEPFCAAA.max@e-soft.ru>
On Dec 14, 2001, "Maxim Dementiev" <max@e-soft.ru> wrote:
> Excuse me if this bug is wellknown for peaple.
It's not a bug.
> This code copile with error by g++ 3.0.2 on Linux 2.2.19 (i386).
> (See commented line below.)
> If rename "errno" to "errno1" - all works fine.
> Is it a bug?
Not really. If it's a bug somewhere, it's in the C library you're
using. But I'm pretty sure errno is allowed to be defined as a macro,
since that's the only reasonable way to get per-thread errno
variables in multi-threaded programs.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me