Skip to content

Commit

Permalink
merge D2 pull #862
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 5, 2012
1 parent 41c336f commit 49bddb3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/statement.c
@@ -1,6 +1,6 @@

// Compiler implementation of the D programming language
// Copyright (c) 1999-2011 by Digital Mars
// Copyright (c) 1999-2012 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -4000,7 +4000,9 @@ Catch *Catch::syntaxCopy()
}

void Catch::semantic(Scope *sc)
{ ScopeDsymbol *sym;
{
if (type && type->deco)
return;

//printf("Catch::semantic(%s)\n", ident->toChars());

Expand All @@ -4017,7 +4019,7 @@ void Catch::semantic(Scope *sc)
}
#endif

sym = new ScopeDsymbol();
ScopeDsymbol *sym = new ScopeDsymbol();
sym->parent = sc->scopesym;
sc = sc->push(sym);

Expand Down

0 comments on commit 49bddb3

Please sign in to comment.