summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit34.C
blob: ea32cf6ea9e4b68fe6c47d33cff017504799b5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// { dg-options "-fshow-column" }
// GROUPS passed templates
template <class T>
void foo(T t);

template <>
void foo(int) {}; // { dg-error "6:previously declared here" }

template <>
void foo<int>(int) {} // { dg-error "6:redefinition" }