Subject: Re: va_list pointers, bad(?) gcc code
To: Michal Ludvig <>
From: Frank van der Linden <>
List: port-amd64
Date: 11/11/2003 11:39:45
On Tue, Nov 11, 2003 at 11:03:25AM +0100, Michal Ludvig wrote:
> void
> vfoo1(const char *a, va_list l)
> {
>          va_list l2;
>          va_copy (l2, l);
>          vfoo2(a, &l2);
> }
> Now it should work...

I agree that this is better, but the thing is: this is 3rd party code,
(my test program jut imitates what's in glib 2.2.3), and I think it's
legal C code.. If it is legal C, then gcc should support it. I'd like to
find out if it's legal, and if this is considered a bug.

- Frank

Frank van der Linden                                  
NetBSD. Free, Unix-like OS. > 45 different platforms.