Debian Codegraph @

gcc/testsuite/g++.dg/pr85039-1.C

raw
1 // { dg-do compile { target c++14 } }
2
3 constexpr int a() {
4 return
5 __builtin_offsetof(struct { // { dg-error "types may not be defined" }
6 int i;
7 short b {
8 __builtin_offsetof(struct {
9 int j;
10 struct c {
11 void d() {
12 }
13 };
14 }, j)
15 };
16 }, i);
17 }