Merged r158704 through r158906 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / ttp5.C
blobee9d1ff7cc95e7fc1a909dc66dc65ec295ea0759
1 // { dg-do compile }
3 // Origin: sneechy@hotmail.com
5 // PR c++/8772: Incorrect diagnostics for template template parameter
6 // mismatch
8 template <int> struct A {
9   template <int> struct B {
10     enum { v = 1 };
11   };
14 template <template <int> class F> struct C {
15   enum { v = F<1>::v || 2 }; 
18 template <int n> struct D {
19   enum { v = C<A<n>::B>::v }; // { dg-error "mismatch|class template" }