OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / nontype19.C
1 // PR c++/42466
2
3 template<class IntT, IntT X>
4 struct A
5 {
6   A();
7
8   template<IntT X2>
9   A(const A<IntT, X2>& other);
10 };
11
12 int main(int argc, char** argv)
13 {
14     A<int, 42> a;
15     A<int, 100> b = a;
16
17     A<unsigned, 42u> c;
18     A<unsigned, 100u> d = c;
19 }