Fix for pr2271367.
This patch fixes a bug introduced by one of the checks for illegal use of automatically allocated variables.
This commit is contained in:
parent
256454960c
commit
69428bb050
|
|
@ -59,7 +59,7 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope,
|
|||
|
||||
scope = des->find_scope(scope, path_list);
|
||||
|
||||
if (scope->is_auto() && li) {
|
||||
if (scope && scope->is_auto() && li) {
|
||||
cerr << li->get_fileline() << ": error: Hierarchical "
|
||||
"reference to automatically allocated item "
|
||||
"`" << key << "' in path `" << path << "'" << endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue