Fix :: references to forward classes

This commit is contained in:
Wilson Snyder
2020-12-05 16:23:20 -05:00
parent e69736124f
commit f858dd44ac
6 changed files with 85 additions and 26 deletions
+3 -3
View File
@@ -1605,10 +1605,10 @@ void AstParseRef::dump(std::ostream& str) const {
}
void AstClassOrPackageRef::dump(std::ostream& str) const {
this->AstNode::dump(str);
if (classOrPackagep()) { str << " cpkg=" << nodeAddr(classOrPackagep()); }
if (classOrPackageNodep()) str << " cpkg=" << nodeAddr(classOrPackageNodep());
str << " -> ";
if (classOrPackagep()) {
classOrPackagep()->dump(str);
if (classOrPackageNodep()) {
classOrPackageNodep()->dump(str);
} else {
str << "UNLINKED";
}