blob: f57c8a261deef306b9edb229e3e6bab9a7c208a0 [file] [log] [blame]
// { dg-do compile { target c++14 } }
constexpr int a() {
return
__builtin_offsetof(struct { // { dg-error "types may not be defined" }
int i;
short b {
__builtin_offsetof(struct { // { dg-error "types may not be defined" }
int j;
struct c { // { dg-error "types may not be defined" }
void d() {
}
};
}, j)
};
}, i);
}