This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20916] va_list passed to a function gets messed up by a call to another function
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Apr 2005 14:14:07 -0000
- Subject: [Bug c++/20916] va_list passed to a function gets messed up by a call to another function
- References: <20050409122808.20916.moritz@bunkus.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-09 14:14 -------
(In reply to comment #5)
> You cannot use a va_list any more after passing it to a consumer like vprintf.
Just a note to fix your code, use va_copy.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20916