blob: acf4eaa7fcb965c11f8091e30cbc86cee78efa77 [file] [log] [blame]
// PR c++/53137
// { dg-options -std=c++11 }
template <typename STORE>
void getParent(STORE& tStore)
{
}
struct Store
{
template <typename CheckParentFunc>
void updateChildCommon(CheckParentFunc c)
{
c();
}
template <typename T>
int& getStore();
template <typename T>
void updateChild(const T& obj)
{
updateChildCommon([this] () { getParent(getStore<T>()); });
}
void update(int obj);
};
void Store::update(int obj)
{
updateChild(obj);
}