PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / init / const5.C
blobfa8d8fc23905ee8f1783945e6d125bf4fba1ffa8
1 // PR c++/31449
3 class Foo {};
4 class Bar : public Foo {};
5 static const Foo *foo = 0;
7 static Bar *bar = static_cast<const Bar*>(foo); // { dg-error "conversion" }
9 void func(const Foo *foo) {
10   Bar *bar = static_cast<const Bar*>(foo);  // { dg-error "conversion" }