c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git] / gcc / testsuite / g++.dg / pr85039-1.C
blob2bda81ba8394c4c4a00989ac2f7bc2e4ce3e649f
1 // { dg-do compile { target c++14 } }
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);