1 //Origin: benko@sztaki.hu
2 //PR c++/11432
3 // The mainline ICE on this one between 2003-01-16 and 2003-07-29.
4 
5 // { dg-do compile }
6 
7  extern "C" void abort();
8 
9 
10 template <int A>
11 struct a
12 {
13   static int const value = A - 1;
14 };
15 
16 
17 template <int B>
18 struct b
19 {
foob20   static int foo()
21   {
22     return a<L>::value;
23   }
24 
25 
26   static int const L = a<B + 1>::value;
27 };
28