aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/crash24.C
blob: 49b8c7e718d23cfe52523f68947d3a204578aab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/17826

struct A
{
  template<typename> static int foo();
};

template<int> struct B {};

template<typename T> void bar()
{
  B<sizeof A::foo<T>()> b1;
  B<sizeof A::foo<T>()> b2;
}