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:
parent
23131008f6
commit
0b24b248db
12
gcc/testsuite/g++.dg/other/stdarg2.C
Normal file
12
gcc/testsuite/g++.dg/other/stdarg2.C
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user