From f2a81cf66080e715334a5c428534febb7bd64b1b Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 31 Aug 2009 11:33:00 -0700 Subject: [PATCH] Fix subtle bug in scope checking. This check looks to be defined to check the child scope not the top level scope. (cherry picked from commit 872962ef18fe444b4c33433383a82d3c6770607b) --- elab_sig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elab_sig.cc b/elab_sig.cc index 0c69c3b96..bae8cbefe 100644 --- a/elab_sig.cc +++ b/elab_sig.cc @@ -126,7 +126,7 @@ static void elaborate_sig_funcs(Design*des, NetScope*scope, hname_t use_name ( (*cur).first ); NetScope*fscope = scope->child(use_name); - if (scope == 0) { + if (fscope == 0) { cerr << (*cur).second->get_fileline() << ": internal error: " << "Child scope for function " << (*cur).first << " missing in " << scope_path(scope) << "." << endl;