1. Vincenzo Ampolo
  2. gdc

Commits

Iain Buclaw  committed 5358186

Issue #321 - internal compiler error: in toCtype

  • Participants
  • Parent commits dea7e43
  • Branches default

Comments (0)

Files changed (1)

File d/d-glue.cc

View file
                 for (size_t i = 0; i < sym->members->dim; i++)
                 {
                     EnumMember * member = (sym->members->tdata()[i])->isEnumMember();
-                    gcc_assert(member);
+                    // Templated functions can seep through to the backend - just ignore for now.
+                    if (member == NULL)
+                        continue;
 
                     char * ident = NULL;
                     if (sym->ident)