ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git] / gcc / testsuite / g++.dg / template / spec42.C
blobcac1264fc9f2c8e1547d95bcddfb02c193325dd4
1 // PR c++/115716
2 // { dg-do compile }
3 template <typename T> struct x {
4   template <typename U> struct y { // { dg-note "used 1 template parameter" }
5     typedef T result2;
6   };
7 };
9 template<>
10 template<typename U, typename>
11 struct x<int>::y { // { dg-error "redeclared with 2 template parameters" }
12   typedef double result2;
15 int main() {
16   x<int>::y<int>::result2 xxx2;