Commits

Iain Buclaw committed f4b81c8

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

Comments (0)

Files changed (1)

     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();
         }