aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/template26.C
blob: aab9763ccaf60715585bd138c4c599fb1be6cdc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/50864

namespace impl
{
  template <class T> T create();
}

template <class T, class U, __SIZE_TYPE__
	  = sizeof(impl::create<T>()->*impl::create<U>())>
struct foo1;

template <class T, class U, __SIZE_TYPE__
	  = sizeof(impl::create<T>()->impl::create<U>())> // { dg-error "not a class member" }
struct foo2;

template <class T, class U, __SIZE_TYPE__
	  = sizeof(impl::create<T>().impl::create<U>())> // { dg-error "not a class member" }
struct foo3;