blob: 2bda81ba8394c4c4a00989ac2f7bc2e4ce3e649f [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 {
int j;
struct c {
void d() {
}
};
}, j)
};
}, i);
}