2 // g++ 1.37.1 bug 900324_05
4 // The following erroneous code causes g++ to segfault.
6 // Cfront 2.0 passes this test.
8 // keywords: segfault, arrays, references, assignment operator=
10 typedef int int_array[];
12 extern int_array int_array_object;
14 int_array &left = int_array_object;
15 int_array &right = int_array_object;
19 left = right; // { dg-error "" } causes segfault
22 int main () { return 0; }