C++ alpha va_list bug

Richard Henderson rth@twiddle.net
Mon Nov 15 23:28:00 GMT 1999


  typedef __builtin_va_list va_list;
  
  class C
  {
  public:
    static void foo(va_list);
    static void bar(const char *, ...);
  };
  
  void C::bar(const char *fmt, ...)
  {
    va_list ap;
    foo(ap);
  }

Yields

z.cc: In function `void C::bar (const char *, ...)':
z.cc:13: could not convert `ap' to `__va_list_tag'

This does not happen if foo is not a member of a class,
but just a plain function.


r~


More information about the Gcc-bugs mailing list