dependent attributes on static members of templatized classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150704
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Owner->isFunctionOrMethod())
SemaRef.CurrentInstantiationScope->InstantiatedLocal(D, Var);
}
- SemaRef.InstantiateAttrs(TemplateArgs, D, Var);
+ SemaRef.InstantiateAttrs(TemplateArgs, D, Var, LateAttrs, StartingScope);
// Link instantiations of static data members back to the template from
// which they were instantiated.
public:
// Test dependent guarded_by
T data GUARDED_BY(mu_);
+ static T static_data GUARDED_BY(static_mu_);
void fooEx(CellDelayed<T> *other) EXCLUSIVE_LOCKS_REQUIRED(mu_, other->mu_) {
this->data = other->data;
}
Mutex mu_;
+ static Mutex static_mu_;
};
void testDelayed() {