☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-virtual5.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual5.C
code
plain
raw
1
// PR c+++/67592
2
// { dg-do compile { target c++11 } }
3
4
struct S {
5
constexpr virtual int f() { return 1; } // { dg-error "13:member .f. can be declared both .virtual. and .constexpr." "" { target c++17_down } }
6
};