PR target/27421
* config/i386/i386.c (classify_argument): Skip fields with invalid
types.
* gcc.dg/array-9.c: New test.
From-SVN: r113706
2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR target/27421
+ * config/i386/i386.c (classify_argument): Skip fields with invalid
+ types.
+
PR middle-end/27384
* fold-const.c (size_binop): Move sanity check for arguments to
the beginning of the function.
{
int num;
+ if (TREE_TYPE (field) == error_mark_node)
+ continue;
+
/* Bitfields are always classified as integer. Handle them
early, since later code would consider them to be
misaligned integers. */
2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR target/27421
+ * gcc.dg/array-9.c: New test.
+
PR middle-end/27384
* g++.dg/other/fold1.C: New test.
--- /dev/null
+/* PR target/27421 */
+/* { dg-do compile } */
+
+struct A
+{
+ int i;
+ void x[1]; /* { dg-error "array of voids" } */
+};
+
+void foo(struct A a) {}