aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash10.C
blob: 62647ca723af0c93fc56d5e9658075106e4a0e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//Origin: benko@sztaki.hu
//PR c++/11432
// The mainline ICE on this one between 2003-01-16 and 2003-07-29.

// { dg-do compile }
 
 extern "C" void abort();
 
 
template <int A>
struct a
{
  static int const value = A - 1;
};

 
template <int B>
struct b
{
  static int foo()
  {
    return a<L>::value;
  }

 
  static int const L = a<B + 1>::value;
};