blob: 3d40581e5e359fd0e6d94a64a43984f675f987b4 [file] [log] [blame]
// PR c++/61945
// { dg-do compile }
// { dg-options "-Woverloaded-virtual" }
class A {
virtual int foo (); // { dg-warning "was hidden" }
};
class B : A {
template <typename>
void foo (); // { dg-message "by .B::foo\\(\\)." }
};