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: possible va-alpha.h bug in DEC alpha gcc-2.95.1


I spoke (wrote) too quickly.  My proposed solution (a change in
`va-alpha.h') for the problem I described does not work.

***************

#include <stdio.h>
#include <stdarg.h>

int foo(int f,...)
{
  va_list args;
  
  va_start(args, f);
}

***************

% gcc -c foo.c
foo.c:8: macro 'va_start' used with too many (2) args

***************

If you comment out the "stdio.h" line, the program will then compile.

Back to the drawing board!

Blair


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