From ecefd81c42da5f8c9b451eb19cec9338702ad44b Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Sun, 3 Nov 2013 13:45:25 +0100 Subject: [PATCH] Possible fix for the current segfaults. DMD treats immutable(char)[] and cons(char)[] as builtin. The latter was missing in LDC. --- gen/typinf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 07b5917d..60c6e895 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -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()