comparison gcc/testsuite/g++.dg/cpp0x/pr71169-2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // { dg-do compile { target c++11 } }
2
3 template <Preconditioner> class A { // { dg-error "declared" }
4 template <class = int> void m_fn1() {
5 m_fn1();
6 }
7 };
8
9 template<typename>
10 struct B
11 {
12 int f(int = 0) { return 0; }
13 };
14
15 int main()
16 {
17 B<int> b;
18 return b.f();
19 }