summaryrefslogtreecommitdiff
path: root/compiler/globtype.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-05-25 12:31:32 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-05-25 12:31:32 +0000
commitcd6037b2cbf6251ba2d0e0752993cbe9a5d46953 (patch)
tree2f963d71c19db83bad49a7d7e630ea1eb2e78c48 /compiler/globtype.pas
parent017e30ee87a211511f8d1955c82d40349ee7f9aa (diff)
downloadfpc-cd6037b2cbf6251ba2d0e0752993cbe9a5d46953.tar.gz
* disable regular array -> dynamic array type coversion support unless
{$modeswitch arraytodynarray} is active (mantis #35576) o changed compiler to compile without this modeswitch o added the modeswitch to a test that depends on it git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@42118 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/globtype.pas')
-rw-r--r--compiler/globtype.pas6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/globtype.pas b/compiler/globtype.pas
index 62bb71c6b5..cb0886f734 100644
--- a/compiler/globtype.pas
+++ b/compiler/globtype.pas
@@ -483,7 +483,8 @@ interface
m_isolike_program_para, { program parameters as it required by an ISO compatible compiler }
m_isolike_mod, { mod operation as it is required by an iso compatible compiler }
m_array_operators, { use Delphi compatible array operators instead of custom ones ("+") }
- m_multi_helpers { helpers can appear in multiple scopes simultaneously }
+ m_multi_helpers, { helpers can appear in multiple scopes simultaneously }
+ m_array2dynarray { regular arrays can be implicitly converted to dynamic arrays }
);
tmodeswitches = set of tmodeswitch;
@@ -673,7 +674,8 @@ interface
'ISOPROGRAMPARAS',
'ISOMOD',
'ARRAYOPERATORS',
- 'MULTIHELPERS'
+ 'MULTIHELPERS',
+ 'ARRAYTODYNARRAY'
);