#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;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0ZW1wbGF0ZTxjbGFzcyBUPiBzdHJ1Y3QgQmFyIHsKCUJhcigpIHsKCQlwcmludGYoIk15IG9mZnNldCBpcyAlZFxuIiwgb2Zmc2V0KCkpOwoJfQoJaW50IG9mZnNldCgpIHsKCQlyZXR1cm4gMDsKCX0KfTsKCnN0cnVjdCBGb28gewoJQmFyPEZvbz4gYmFyOwoJQmFyPEZvbz4gYmF6Owp9OwoKaW50IG1haW4oKSB7CglGb28gZm9vOwoJcmV0dXJuIDA7Cn0=