mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:19:33 +02:00
* In Delphi mode throw a conversion error when trying to typecast a pointer to a procdef when they use different memory models.
git-svn-id: trunk@45856 -
This commit is contained in:
parent
cbe38d7664
commit
72dc2145e9
@ -1683,7 +1683,8 @@ implementation
|
||||
{ to procedure variables }
|
||||
if (m_pointer_2_procedure in current_settings.modeswitches) and
|
||||
is_void(tpointerdef(def_from).pointeddef) and
|
||||
tprocvardef(def_to).is_addressonly then
|
||||
tprocvardef(def_to).is_addressonly and
|
||||
tprocvardef(def_to).compatible_with_pointerdef_size(tpointerdef(def_from)) then
|
||||
begin
|
||||
doconv:=tc_equal;
|
||||
eq:=te_convert_l1;
|
||||
|
Loading…
Reference in New Issue
Block a user