From c8dfae66bab7e3ee815b130131ac5bda32948f0e Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 9 Dec 2003 04:08:20 +0000 Subject: [PATCH] PR c++/11929 * call.c (magic_varargs_p): New fn. (build_over_call): Do no ellipsis conversions for arguments to functions with magic varargs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74461 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 0000000..99e9040 --- /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.7.4