mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Merged DMD commit c7f94c6b66d3b4233ea01dd3dd9f0028b7118870:
5391 Crash with recursive alias declaration When a recursive alias declaration is encountered, mark it as type error (not just as an alias to itself of type error).
This commit is contained in:
@@ -620,6 +620,7 @@ Dsymbol *AliasDeclaration::toAlias()
|
||||
if (inSemantic)
|
||||
{ error("recursive alias declaration");
|
||||
aliassym = new TypedefDeclaration(loc, ident, Type::terror, NULL);
|
||||
type = Type::terror;
|
||||
}
|
||||
else if (!aliassym && scope)
|
||||
semantic(scope);
|
||||
|
||||
Reference in New Issue
Block a user