Skip to content

Commit

Permalink
bugzilla 3685 Regression(D1 only): DMD silently exits on valid code
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Bright committed Jan 23, 2010
1 parent f2457e4 commit 713fa84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/template.c
@@ -1,6 +1,6 @@

// Compiler implementation of the D programming language
// Copyright (c) 1999-2009 by Digital Mars
// Copyright (c) 1999-2010 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
Expand Down Expand Up @@ -3497,7 +3497,8 @@ void TemplateInstance::semantic(Scope *sc)
error("error instantiating");
if (tinst)
{ tinst->printInstantiationTrace();
fatal();
if (!global.gag)
fatal();
}
errors = 1;
if (global.gag)
Expand Down

0 comments on commit 713fa84

Please sign in to comment.