// PR c++/53137 // { dg-do compile { target c++11 } } template void getParent(STORE& tStore) { } struct Store { template void updateChildCommon(CheckParentFunc c) { c(); } template int& getStore(); template void updateChild(const T& obj) { updateChildCommon([this] () { getParent(getStore()); }); } void update(int obj); }; void Store::update(int obj) { updateChild(obj); }