1 // PR c++/88128 - DR 330: Qual convs and pointers to arrays of pointers. 2 3 // Make sure we don't accept different bounds. 4 5 int *a[4]; 6 const int *const(*ap1)[5] = &a; // { dg-error "cannot convert" } 7 8 int *(*b)[3]; 9 const int *const (*bp1)[3] = &b; // { dg-error "cannot convert" } 10 const int *const (*bp2)[4] = &b; // { dg-error "cannot convert" } 11 int *(*bp3)[4] = &b; // { dg-error "cannot convert" } 12 13 int *c[2][3]; 14 int const *const (*cp1)[4] = c; // { dg-error "cannot convert" } 15