// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
// rdar://problem/11120365
namespacetest0{template<class T>structA{staticvoidfoo(const T &t){}staticvoidfoo(T &&t){
t.foo();// expected-error {{member reference base type 'int' is not a structure or union}}
}};voidtest(){
A<int>::foo({});// expected-note {{requested here}}
}}