Skip to content

Commit

Permalink
bugzilla 4503 forward reference to aliased template instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Bright committed Aug 9, 2010
1 parent cce6d04 commit a7e0862
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/declaration.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ Dsymbol *AliasDeclaration::toAlias()
{ error("recursive alias declaration");
aliassym = new TypedefDeclaration(loc, ident, Type::terror, NULL);
}
else if (!aliassym && scope)
semantic(scope);
Dsymbol *s = aliassym ? aliassym->toAlias() : this;
return s;
}
Expand Down

0 comments on commit a7e0862

Please sign in to comment.