mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
* check whether we are explicitly typecasting untypedpointer^ before other
cases (that depend on the sizes of the typecast matching) so that we can (internally) generate typecasts to open array/array of const git-svn-id: trunk@29819 -
This commit is contained in:
parent
aae879d28a
commit
c764826bb3
@ -2392,6 +2392,10 @@ implementation
|
||||
((resultdef.typ=enumdef) and
|
||||
(left.resultdef.typ=objectdef))) or
|
||||
{$endif}
|
||||
(
|
||||
is_void(left.resultdef) and
|
||||
(left.nodetype=derefn)
|
||||
) or
|
||||
(
|
||||
not(is_open_array(left.resultdef)) and
|
||||
not(is_array_constructor(left.resultdef)) and
|
||||
@ -2406,10 +2410,6 @@ implementation
|
||||
{ the softfloat code generates casts <const. float> to record }
|
||||
(nf_internal in flags)
|
||||
))
|
||||
) or
|
||||
(
|
||||
is_void(left.resultdef) and
|
||||
(left.nodetype=derefn)
|
||||
)
|
||||
) then
|
||||
CGMessage2(type_e_illegal_type_conversion,left.resultdef.typename,resultdef.typename)
|
||||
|
Loading…
Reference in New Issue
Block a user