+2006-10-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR C++/28349
+ * call.c (build_x_va_arg): Remove the reference type
+ from the type before creating the pointer type.
+
2006-09-09 Jason Merrill <jason@redhat.com>
PR c++/28996
2006-09-06 Zak Kipling <zak@transversal.com>
- PR c++/26195
+ PR c++/26195
* decl.c (make_rtl_for_nonlocal_decl),
(start_preparsed_function): Don't use lbasename on
input_filename when calling get_fileinfo.
if (! pod_type_p (type))
{
+ /* Remove reference types so we don't ICE later on. */
+ tree type1 = non_reference (type);
/* Undefined behavior [expr.call] 5.2.2/7. */
warning ("cannot receive objects of non-POD type %q#T through %<...%>; "
"call will abort at runtime", type);
- expr = convert (build_pointer_type (type), null_node);
+ expr = convert (build_pointer_type (type1), null_node);
expr = build2 (COMPOUND_EXPR, TREE_TYPE (expr),
call_builtin_trap (), expr);
expr = build_indirect_ref (expr, NULL);
+2006-10-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR c++/28349
+ * testsuite/g++.dg/warn/var-args1.C: New test.
+
2006-10-08 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/28980