Explorar o código

compiler: raise an internal error if deprecated message is trying to set to a non clear string pointer

git-svn-id: branches/paul/features@13899 -
paul %!s(int64=16) %!d(string=hai) anos
pai
achega
4e82976798
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/pbase.pas

+ 2 - 0
compiler/pbase.pas

@@ -325,6 +325,8 @@ implementation
           { handle deprecated message }
           if ((token=_CSTRING) or (token=_CCHAR)) and last_is_deprecated then
             begin
+              if deprecatedmsg<>nil then
+                internalerror(200910181);
               deprecatedmsg:=stringdup(pattern);
               consume(token);
               include(symopt,sp_has_deprecated_msg);