#include <stdio.h>

template<class T> struct Bar {
	Bar() {
		printf("My offset is %d\n", offset());
	}
	int offset() {
		return 0;
	}
};

struct Foo {
	Bar<Foo> bar;
	Bar<Foo> baz;
};

int main() {
	Foo foo;
	return 0;
}