------- Comment #9 from pinskia at gcc dot gnu dot org  2008-02-09 01:41 -------
(In reply to comment #8)
> I've read this section of the standard, and don't see that
> it is applicable. "Any function declared in a header may be additionally
> implemented as a function-like macro defined in the header, so if a
> library function is declared explicitly when its header is included, one
> of the techniques shown below can be used to ensure the declaration is
> not affected by such a macro."

Huh???  Look, fprintf becomes a function like macro, you use it was a function
like macro when you do:
        p.fprintf(&p, "%i", 123);


So Guess what the preprocessor happens before the rest of the processing so you
end up with the macro function substation and you get the incorrect result you
wantted.  so again there is no issue inside GCC.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34710

Reply via email to