mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 19:29:09 +02:00
* only allow pointer(integer) in fpc modes
git-svn-id: trunk@6598 -
This commit is contained in:
parent
fcc873b202
commit
f7a6c1e2ee
@ -899,8 +899,17 @@ implementation
|
||||
It is also used by the compiler internally for inc(pointer,ordinal) }
|
||||
if (eq=te_incompatible) and
|
||||
not is_void(def_from) and
|
||||
(cdo_explicit in cdoptions) or
|
||||
(cdo_internal in cdoptions) then
|
||||
(
|
||||
(
|
||||
(cdo_explicit in cdoptions) and
|
||||
(
|
||||
(m_delphi in current_settings.modeswitches) or
|
||||
{ Don't allow pchar(char) in fpc modes }
|
||||
is_integer(def_from)
|
||||
)
|
||||
) or
|
||||
(cdo_internal in cdoptions)
|
||||
) then
|
||||
begin
|
||||
doconv:=tc_int_2_int;
|
||||
eq:=te_convert_l1;
|
||||
|
Loading…
Reference in New Issue
Block a user