c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / partial-specialization8.C
blobe3ffe3b58a705263a7e7d50c441bd6288457a964
1 // PR c++/55639
3 template <int number>
4 struct SomeClass
6   SomeClass() { }
8   template <typename E, int number2>
9   struct Fun {
10     static void
11     fun() { }
12   };
15 template <int number>
16 template <typename E>
17 struct SomeClass<number>::template Fun<E, 0> { // { dg-error "template" }
18   static void fun() { }