diff --git a/test/m1.cpp b/test/m1.cpp index cbaaf8db..61c2848b 100644 --- a/test/m1.cpp +++ b/test/m1.cpp @@ -172,7 +172,7 @@ struct A struct B : A { B() : x(1) {} - char const* name() { return "B"; } + static char const* name(B*) { return "B"; } int x; };