blob: 8003ed9e1332f6bb5f9a4dd9aa991f3242f494e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/56871
// { dg-options "-std=c++11" }
template<typename T> constexpr int foo(T);
template<> int foo(int);
template<> int foo(int); // { dg-error "previous" }
template<> constexpr int foo(int); // { dg-error "redeclaration" }
template<typename T> int bar(T);
template<> constexpr int bar(int);
template<> constexpr int bar(int); // { dg-error "previous" }
template<> int bar(int); // { dg-error "redeclaration" }
|