blob: 394e466b05d0d13ff68c22db95b8002dae5a08e7 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "" }
int a[]{a}; // { dg-error "invalid conversion" }
template<int>
struct b {
__attribute__((c([] {
struct {
int a = static_cast<struct d>(a); // { dg-error "invalid use of incomplete type" }
} e;
})));
};