------- Comment #6 from pinskia at gcc dot gnu dot org 2006-09-13 16:22 ------- (In reply to comment #5) > Andrew, > The proposed patch doesn't work. It converts the internal > compiler error into a compiler time error of... Yes the patch does work as this is invalid code to begin with :). Look at the testcase: struct A { int i; void x[1]; /* { dg-error "array of voids" } */ };
void foo(struct A a) {} See how there is a dg-error there, that error is expected. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29030