In file included from /usr/include/c++/6/cstddef:50:0,
from prog.cpp:2:
prog.cpp: In function ‘int main()’:
prog.cpp:12:27: error: ‘int A::c’ is private within this context
std::cout << offsetof(A, c) << std::endl;
^
prog.cpp:8:6: note: declared private here
int c;
^