Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr61945.C
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\\(\\)." }
};