Commit 0b24b248 by Jason Merrill

re PR c++/11929 (Cannot obtain variable arguments list in function with last…

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
parent 23131008
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment