Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dmd2/declaration.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ void AliasDeclaration::semantic(Scope *sc)
if (s && ((s->getType() && type->equals(s->getType())) || s->isEnumMember()))
goto L2; // it's a symbolic alias

type = type->addStorageClass(storage_class);
type = type->addSTC(storage_class);
if (storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCdisable))
{
// For 'ref' to be attached to function types, and picked
Expand All @@ -569,6 +569,7 @@ void AliasDeclaration::semantic(Scope *sc)
}
else
type->resolve(loc, sc, &e, &t, &s);

if (s)
{
goto L2;
Expand Down