1 /* { dg-options "-Woverloaded-virtual" } */ 2 3 class Base { 4 public: ~Base()5 virtual ~Base() { 6 } 7 }; 8 9 class Derived: public Base { 10 public: Base()11 int Base() { // There should be no error here. 12 return 5; 13 } 14 }; 15 main()16 int main() { 17 } 18