// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s// rdar://problem/11120365namespace test0 {template<class T>struct A {static voidfoo(const T &t) {}static voidfoo(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}}}}