2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash61.C
blob21245042915bbe6021e281b6dd017cec591f4ed3
1 // { dg-do assemble  }
2 // Source: Neil Booth, from PR # 106. 4 Dec 2000.
4 template <bool b> class bar
6 };
8 class A_a
10   public:
11    static const bool b = true;
14 class B_b
16   public:
17    static const bool b = false;
20 template <class A, class B> class foo
24 template <class A, class B>
25 bar<(A::b || B::b)> do_funky(const foo<A, B>&);
27 int main()
29   bar<true> a_bar = do_funky(foo<A_a, B_b>());