mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-25 16:01:32 +02:00
* allow temp strings to be passed to consts in delphi mode
git-svn-id: trunk@233 -
This commit is contained in:
parent
4ace790492
commit
4766e62dd2
@ -1033,7 +1033,8 @@ implementation
|
|||||||
{ Temp strings are stored in memory, for compatibility with
|
{ Temp strings are stored in memory, for compatibility with
|
||||||
delphi only }
|
delphi only }
|
||||||
if (m_delphi in aktmodeswitches) and
|
if (m_delphi in aktmodeswitches) and
|
||||||
(valid_addr in opts) and
|
((valid_addr in opts) or
|
||||||
|
(valid_const in opts)) and
|
||||||
(hp.resulttype.def.deftype=stringdef) then
|
(hp.resulttype.def.deftype=stringdef) then
|
||||||
result:=true
|
result:=true
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user