Don't issue unnecessary base class ignored message

Don't warn about base class being ignored when the derived class is
itself ignored.

Closes #669
This commit is contained in:
William S Fulton 2016-05-02 22:50:09 +01:00
commit 3efdbc8f2e
4 changed files with 28 additions and 1 deletions

View file

@ -503,7 +503,8 @@ class TypePass:private Dispatcher {
/* Inherit type definitions into the class */
if (name && !(GetFlag(n, "nested") && !checkAttribute(n, "access", "public") &&
(GetFlag(n, "feature:flatnested") || Language::instance()->nestedClassesSupport() == Language::NCS_None))) {
cplus_inherit_types(n, 0, nname ? nname : (fname ? fname : name));
if (!GetFlag(n, "feature:ignore"))
cplus_inherit_types(n, 0, nname ? nname : (fname ? fname : name));
}
inclass = n;