mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
fixes #428 :: apply DMDFE 1.061; thanks SiegeLord
This commit is contained in:
@@ -523,7 +523,7 @@ void AliasDeclaration::semantic(Scope *sc)
|
||||
//printf("alias is a symbol %s %s\n", s->kind(), s->toChars());
|
||||
type = NULL;
|
||||
VarDeclaration *v = s->isVarDeclaration();
|
||||
if (v && v->linkage == LINKdefault)
|
||||
if (0 && v && v->linkage == LINKdefault)
|
||||
{
|
||||
error("forward reference of %s", v->toChars());
|
||||
s = NULL;
|
||||
@@ -831,8 +831,8 @@ void VarDeclaration::semantic(Scope *sc)
|
||||
OutBuffer buf;
|
||||
buf.printf("_%s_field_%zu", ident->toChars(), i);
|
||||
buf.writeByte(0);
|
||||
char *name = (char *)buf.extractData();
|
||||
Identifier *id = new Identifier(name, TOKidentifier);
|
||||
const char *name = (const char *)buf.extractData();
|
||||
Identifier *id = Lexer::idPool(name);
|
||||
|
||||
Expression *einit = ie;
|
||||
if (ie && ie->op == TOKtuple)
|
||||
|
||||
Reference in New Issue
Block a user