This mailing list is for automated mails from our Bugzilla bug tracker
system.

If you want to report a bug, please see https://gcc.gnu.org/bugs/

If you want to ask a question, use the gcc-h...@gcc.gnu.org list, not
the gcc-bugs list. Please direct any follow-up discussion there
instead.

There is nothing wrong with printf. Yes, it's the sttic variable.
Before printf is called, every argument has to be evaluated. Since
every call to timestamp returns the same pointer, you just print that
string four times, and whatever it happens to contain at that time is
printed four times.


  • printf behaviour johannes janssens via Gcc-bugs
    • Re: printf behaviour Jonathan Wakely via Gcc-bugs

Reply via email to