Bug in new va_arg? :gcc 2.96 19990924: i686-pc-linux-gnu

Raja R Harinath harinath@cs.umn.edu
Sat Sep 25 16:19:00 GMT 1999


Hi,

The following program illustrates a bug in the new `va_arg' code.  It
appears that

        (void) va_arg(args, int)

will not advance `args', where as

        int discard = va_arg(args, int)

will do the right thing.




More information about the Gcc-bugs mailing list