1. Vincenzo Ampolo
  2. gdc

Commits

Iain Buclaw  committed f4b81c8

Issue #314 - ICE: non-trivial conversion at assignment

  • Participants
  • Parent commits 87241c8
  • Branches default

Comments (0)

Files changed (1)

File d/d-glue.cc

View file
     if (! ctype)
     {   /* Enums in D2 can have a base type that is not necessarily integral.
            So don't bother trying to make an ENUMERAL_TYPE using them.  */
-        if (! sym->memtype->isintegral())
+        if (! sym->memtype->isintegral() || sym->memtype->ty == Tbool)
         {
             ctype = sym->memtype->toCtype();
         }