2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-dependent2.C
blob3b073b47a2b6eeca72e0b8f0ba41a59b2d38f5b4
1 //PR c++/11070
2 // Used to ICE
3 // Origin: bangerth@dealii.org and rwgk@yahoo.com
5 template <bool b> struct X {
6     template <typename T>
7     static int* execute(int* x) { return x; }
8 };
10 template <typename T> void foo() {
11   static bool const same = true;
12   X<same>::execute<int> (0);
15 template void foo<int> ();