aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-template2.C
blob: fcb405c157623776985a56efea737bb308317858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/50614
// { dg-do compile { target c++11 } }
// { dg-options "-fcompare-debug" }

struct A
{
  int f ();
};

template <int> struct B : A
{
  int i = this->f ();
};

B<0> b;