summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/access01.C
blob: 43e5e863720e5bdbdf1091504bcc5dfa57a178e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/49042
// { dg-options -std=c++0x }

template <class T>
class A
{
  T p;
public:
  template <class U> auto f() -> decltype(+p) { }
};

int main()
{
  A<int>().f<int>();
}