Browse Source

* don't use normal assingments for inlining of formal consts

git-svn-id: trunk@393 -
peter 20 years ago
parent
commit
34ed3ae7a5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ncal.pas

+ 1 - 0
compiler/ncal.pas

@@ -2130,6 +2130,7 @@ type
                    (vo_is_funcret in tparavarsym(para.parasym).varoptions) or
                    (para.parasym.varspez = vs_value) or
                    ((para.parasym.varspez = vs_const) and
+                    (para.parasym.vartype.def.deftype<>formaldef) and
                    { the compiler expects that it can take the address of parameters passed by reference in
                      the case of const so we can't replace the node simply by a constant node
                      When playing with this code, ensure that