Parser: Move 'pure virtual' and 'extern' unsupported messages down out of parser.

This commit is contained in:
Wilson Snyder
2020-07-02 08:24:50 -04:00
parent a17f51eac0
commit 50c28fa9d3
12 changed files with 75 additions and 26 deletions
+3
View File
@@ -2606,6 +2606,9 @@ private:
if (nodep->classMethod() && nodep->lifetime().isStatic()) {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: 'static' class method");
}
if (nodep->isExtern()) {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: extern class methods");
}
VSymEnt* oldCurSymp = m_curSymp;
{
m_ftaskp = nodep;