blob: 11b91ec355ea584ccfbe82be0da9443b317e62d6 [file] [log] [blame]
// PR c++/93710 - poor diagnostic for array initializer.
struct A { A (int); A (char*); int i; };
int x;
A a1[] = {
0L, // { dg-error "3:conversion from .long int. to .A. is ambiguous" }
&x, // { dg-error "3:invalid conversion from .int\\*. to .int." }
__builtin_offsetof (A, i) // { dg-error "23:conversion from .\(long \)?unsigned int. to .A. is ambiguous" }
};