Browse Source

* taking the address of a resourcestring is allowed now

florian 20 years ago
parent
commit
2729f303a4
1 changed files with 13 additions and 1 deletions
  1. 13 1
      compiler/htypechk.pas

+ 13 - 1
compiler/htypechk.pas

@@ -1118,6 +1118,15 @@ implementation
                          CGMessagePos(hp.fileinfo,type_e_variable_id_expected);
                          CGMessagePos(hp.fileinfo,type_e_variable_id_expected);
                        exit;
                        exit;
                      end;
                      end;
+                   constsym:
+                     begin
+                       if (tconstsym(tloadnode(hp).symtableentry).consttyp=constresourcestring) and
+                         (valid_addr in opts) then
+                         result:=true
+                       else
+                         CGMessagePos(hp.fileinfo,type_e_variable_id_expected);
+                       exit;
+                     end;
                    else
                    else
                      begin
                      begin
                        CGMessagePos(hp.fileinfo,type_e_variable_id_expected);
                        CGMessagePos(hp.fileinfo,type_e_variable_id_expected);
@@ -1986,7 +1995,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.110  2005-01-19 22:19:41  peter
+  Revision 1.111  2005-01-19 23:23:12  florian
+    * taking the address of a resourcestring is allowed now
+
+  Revision 1.110  2005/01/19 22:19:41  peter
     * unit mapping rewrite
     * unit mapping rewrite
     * new derefmap added
     * new derefmap added