1. Vincenzo Ampolo
  2. gdc

Commits

Iain Buclaw  committed 3f532d7

Issue #316 - ICE in RedBlackTree unittest

  • Participants
  • Parent commits 52a4034
  • Branches default

Comments (0)

Files changed (1)

File d/d-lang.cc

View file
 #endif
 
     /* We're done parsing; proceed to optimize and emit assembly. */
-    cgraph_finalize_compilation_unit();
+    if (! global.errors && ! errorcount)
+        cgraph_finalize_compilation_unit();
 
     /* After cgraph has had a chance to emit everything that's going to
        be emitted, output debug information for globals.  */