2 // { dg-do compile { target c++2a } }
3 // { dg-additional-options "-fdelete-null-pointer-checks" }
6 constexpr A () : a (0) {}
7 constexpr virtual int foo () { return 1 + a * 4; }
12 constexpr B () : b (0) {}
13 constexpr virtual int foo () { return 0 + b * 4; }
27 constexpr auto a = foo (); // { dg-error "is not a constant expression" }