summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/init1.C
blob: fdbff8d3cb19633ac0bb29b8421486e9b51a7dc3 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }

// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>

// PR c++/9457: ICE tsubst'ing initializers in templates.

template <typename> void foo (int count) {
  int i = {count};
}
template void foo<int> (int);