Browse Source

* allow temp strings to be passed to consts in delphi mode

git-svn-id: trunk@233 -
peter 20 years ago
parent
commit
4766e62dd2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/htypechk.pas

+ 2 - 1
compiler/htypechk.pas

@@ -1033,7 +1033,8 @@ implementation
                  { Temp strings are stored in memory, for compatibility with
                    delphi only }
                    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
                      result:=true
                  else