Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/unify3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Test unifying SCOPE_REF. |
2 // Origin: Marc Duflot <m.duflot@ulg.ac.be> | |
3 // { dg-do compile } | |
4 | |
5 template <int n> class A {}; | |
6 template <int m> class R {}; | |
7 | |
8 template <int n> struct Trait { enum {m = n}; }; | |
9 | |
10 template <int n> R<Trait<n>::m> f(A<n>); | |
11 template <> R<1> f(A<1>) {return R<1>();} |