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

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
7 7
8 int g(); 8 int g();
9 9
10 // We should complain about this. 10 // We should complain about this.
11 template<> constexpr int A<int>::f() 11 template<> constexpr int A<int>::f()
12 { return g(); } // { dg-error "non-constexpr" } 12 { return g(); } // { dg-error "non-.constexpr." }
13 13
14 // But not about this. 14 // But not about this.
15 struct B 15 struct B
16 { 16 {
17 int i; 17 int i;