This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: va_arg( , char) problem
- To: Bernhard Reiter <bernhard at intevation dot de>,gcc-bugs at gcc dot gnu dot org
- Subject: Re: va_arg( , char) problem
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Tue, 9 May 2000 22:41:21 +0200
- References: <20000509210552.A22737@cheops.usf.Uni-Osnabrueck.DE>
On Tue, 09 May 2000, Bernhard Reiter wrote:
In case that the "char" type to va_arg is really illegal as already hinted
upon
on the stdarg.h file there should be an error message somehow. :)
The solution seems to be to not use va_arg with the char type.
Yes, this is illegal according to the C standard. Current gcc-mainline
produces a real error message for all optimization levels and on all
platforms.
Franz.