clang/test/CXX/over/over.match/over.match.best/over.best.ics/over.ics.list/p6.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s |
| 2 | |
| 3 | namespace test0 { |
| 4 | template <class T> struct A { |
| 5 | static void foo(const T &t) {} |
| 6 | static void foo(T &&t) { |
| 7 | t.foo(); // expected-error {{member reference base type 'int' is not a structure or union}} |
| 8 | } |
| 9 | }; |
| 10 | |
| 11 | void test() { |
| 12 | A<int>::foo({}); // expected-note {{requested here}} |
| 13 | } |
| 14 | } |