浏览代码

Merged revisions 233 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@275 -

peter 20 年之前
父节点
当前提交
39cda58838
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/htypechk.pas

+ 2 - 1
compiler/htypechk.pas

@@ -1032,7 +1032,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