GCC 3.0.2: errno conflict.

Alexandre Oliva aoliva@redhat.com
Fri Dec 14 10:17:00 GMT 2001


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



More information about the Gcc mailing list