aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/decltype22.C
blob: 74811cfe701cb9bd618206b836680d245f51e808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/42761
// { dg-options "-std=c++0x" }

template<typename _Tp> _Tp* fn();

template <class T> struct A
{
  template <class U,
	    class S = decltype(fn<T>())>
  struct B { };
};

A<int> a;