re PR c++/11929 (Cannot obtain variable arguments list in function with last named argument being of non-POD type)

PR c++/11929
        * call.c (magic_varargs_p): New fn.
        (build_over_call): Do no ellipsis conversions for arguments to
        functions with magic varargs.

From-SVN: r74461
This commit is contained in:
Jason Merrill 2003-12-08 23:08:20 -05:00
parent 23131008f6
commit 0b24b248db

View File

@ -0,0 +1,12 @@
// PR c++/11929
// Bug: We were complaining about the call to va_start because o is of
// non-POD type.
struct s {
s(int);
};
void test(s o, ...) {
__builtin_va_list varg;
__builtin_va_start(varg, o);
}