summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/value8.C
blob: 0a9b90b64bf369613950f315ecf5029108574d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/45315

struct A
{
  A ();
};

template < int > struct B : A
{
  void foo ()
  {
    new B < 0 > ();
  }
};

int main()
{
  B<1>().foo();
}