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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.0.2: errno conflict.


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


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