Possible fix for the current segfaults.

DMD treats immutable(char)[] and cons(char)[] as builtin.
The latter was missing in LDC.
This commit is contained in:
Kai Nacke
2013-11-03 13:45:25 +01:00
parent bf4c6f8ff2
commit ecefd81c42

View File

@@ -258,7 +258,8 @@ int TypeDArray::builtinTypeInfo()
{
return !mod && ((next->isTypeBasic() != NULL && !next->mod) ||
// strings are so common, make them builtin
(next->ty == Tchar && next->mod == MODimmutable));
(next->ty == Tchar && next->mod == MODimmutable) ||
(next->ty == Tchar && next->mod == MODconst));
}
int TypeClass::builtinTypeInfo()