Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ice4.C

raw
1 // PR c++/51612
2 // { dg-do compile { target c++11 } }
3
4 struct A {};
5
6 struct B : virtual A
7 {
8 constexpr B() { } // { dg-error "has virtual base classes" }
9 };