bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in bits/stdio.h when used with GCC-3


From: Andreas Jaeger
Subject: Re: Bug in bits/stdio.h when used with GCC-3
Date: Sat, 25 Aug 2001 18:43:50 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor)

James Youngman <address@hidden> writes:

> Description of problem:
>
> When compiling programs with optimisation, GCC defines the
> __USE_EXTERN_INLINES macro.  The /usr/include/bits/stdio.h header
> #defines a macro for printf in this case.  However, while this is
> probably fine for C, it breaks C++ programs where objects can have
> member functions called printf.  This macro is also not defined if the
> GCC version is earlier than 2.97.   Here is the offending code :-

The printf macro has been removed in glibc 2.2.4.

Nevertheless the C library is allowed to define printf as a macro in C
- and also all other functions.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]