From 0b24b248db4bbf7e872cc523200e7468da686ef6 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 8 Dec 2003 23:08:20 -0500 Subject: [PATCH] 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 --- gcc/testsuite/g++.dg/other/stdarg2.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/stdarg2.C diff --git a/gcc/testsuite/g++.dg/other/stdarg2.C b/gcc/testsuite/g++.dg/other/stdarg2.C new file mode 100644 index 00000000000..99e904013f1 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/stdarg2.C @@ -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); +} -- 2.30.2