Debian Codegraph @

gcc/testsuite/g++.dg/template/offsetof2.C

raw
1 // PR c++/49085
2
3 template <class T>
4 struct A // { dg-message "not complete" }
5 {
6 int i, j;
7 int ar[__builtin_offsetof(A,j)]; // { dg-error "incomplete type" }
8 };
9
10 A<int> a;