diff --git a/src/V3Task.cpp b/src/V3Task.cpp index fba7690f8..bea9cfdbd 100644 --- a/src/V3Task.cpp +++ b/src/V3Task.cpp @@ -1733,14 +1733,14 @@ class TaskVisitor final : public VNVisitor { if (noInline && !nodep->classMethod() && !nodep->recursive()) { if (AstNode* const impurep = m_statep->checkImpure(nodep)) { if (!isIfaceLocalImpure(nodep, impurep)) { - nodep->v3warn( - IMPURE, - "Unsupported: External variable referenced by non-inlined function/task: " - << nodep->prettyNameQ() << '\n' - << nodep->warnContextPrimary() << '\n' - << impurep->warnOther() << "... Location of the external reference: " - << impurep->prettyNameQ() << '\n' - << impurep->warnContextSecondary()); + nodep->v3warn(IMPURE, "Unsupported: External variable referenced by " + "non-inlined function/task: " + << nodep->prettyNameQ() << '\n' + << nodep->warnContextPrimary() << '\n' + << impurep->warnOther() + << "... Location of the external reference: " + << impurep->prettyNameQ() << '\n' + << impurep->warnContextSecondary()); } } } diff --git a/test_regress/t/t_interface_func_impure_bad.py b/test_regress/t/t_interface_func_impure_bad.py old mode 100644 new mode 100755