summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash74.C
blob: 9f2e415cfeeb25f9751e2f2e62c62c000a2f011c (plain)
1
2
3
4
5
6
// PR c++/34089
// { dg-do compile }
// { dg-options "" }

template<typename F> void foo () { }
template<typename F> struct foo<F> { };	// { dg-error "redeclared as" }