I have 2 classes:
class base {
virtual void foo() {};
};
class derived : public base {
void foo() { base::foo(); }
};
I made a mistake and wrote base:foo();
instead of base::foo();
. The code was compiled and run, but segfaulted.
I don't know how I can Google it and don't know what it is, but I'm very interested: what does that mean?
base:foo();
If it is important:
class base : public QAbstractGraphicsShapeItem
warning: label 'base' defined but not used [-Wunused-label]
... perhaps we need to add this ask a question page: Have you tried turning on warnings