* typeck.c (convert_arguments): Return early on args with
invalid types.
* g++.dg/conversion/void1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113568
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-05-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27422
+ * typeck.c (convert_arguments): Return early on args with
+ invalid types.
+
2006-05-03 Aldy Hernandez <aldyh@redhat.com>
PR/21391
tree type = typetail ? TREE_VALUE (typetail) : 0;
tree val = TREE_VALUE (valtail);
- if (val == error_mark_node)
+ if (val == error_mark_node || type == error_mark_node)
return error_mark_node;
if (type == void_type_node)
+2006-05-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27422
+ * g++.dg/conversion/void1.C: New test.
+
2006-05-03 Aldy Hernandez <aldyh@redhat.com>
PR/21391
--- /dev/null
+// PR c++/27422
+// { dg-do compile }
+
+void foo(void i); // { dg-error "incomplete type|invalid use" }
+void bar() { foo(0); }