Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/spec9.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 // { dg-do compile } |
2 | |
3 // Origin: Lynn Akers <lakers@peachtree.com> | |
4 // Wolfgang Bangerth <bangerth@ticam.utexas.edu> | |
5 | |
6 // PR c++/10956: Incorrect template substitution for member template | |
7 // specialization inside template class. | |
8 | |
9 template <int> struct C { | |
10 template<typename T> void pre_add(T); | |
11 }; | |
12 | |
13 template<> | |
14 template<typename T> | |
15 void C<32>::pre_add(T) { | |
16 T pre; | |
17 } | |
18 | |
19 int main() { | |
20 C<32>().pre_add<int>(1); | |
21 } |