This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: va_arg( , char) problem


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]