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 compiler/src/dmd/expression.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import dmd.dsymbol;
import dmd.dtemplate;
import dmd.errors;
import dmd.func;
import dmd.globals;
import dmd.globals : dinteger_t;
import dmd.hdrgen : toChars;
import dmd.id;
import dmd.identifier;
Expand Down Expand Up @@ -652,6 +652,7 @@ extern (C++) final class ErrorExp : Expression
if (errorexp is null)
errorexp = new ErrorExp();

import dmd.globals : global;
if (global.errors == 0 && global.gaggedErrors == 0)
{
/* Unfortunately, errors can still leak out of gagged errors,
Expand Down
Loading