mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-09 08:23:20 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user