1// Build don't link: 2// prms-id: 418 3 4class Base { 5public: 6 int foo; 7}; 8 9class Derived : public Base { 10public: 11 int bar; 12}; 13 14void func(Base&); // ERROR - referenced by error below 15 16void func2(const Derived& d) { 17 func(d); // ERROR - should be error because of const 18} 19