Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/spec3.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 // PR c++/3870 |
2 // Test that performing a type instantiation in order to match up a | |
3 // specialization doesn't clobber last_function_parms. | |
4 | |
5 template <class T> | |
6 struct A { typedef int I; }; | |
7 | |
8 template <class T> | |
9 inline typename T::I | |
10 foo (typename T::I, const T*); | |
11 | |
12 template <> | |
13 int foo (int i, const A<long>*) | |
14 { | |
15 return i + 1; | |
16 } |