Browse Source

* overloaded forward problem

pierre 26 years ago
parent
commit
a500f24e92
2 changed files with 20 additions and 1 deletions
  1. 18 0
      bugs/bug0253.pp
  2. 2 1
      bugs/readme.txt

+ 18 - 0
bugs/bug0253.pp

@@ -0,0 +1,18 @@
+procedure test(w : word);forward;
+
+procedure test(a : string);
+begin
+   Writeln(a);
+   test(20);
+end;
+
+procedure test(w :word);
+begin
+   writeln(w);
+end;
+
+begin
+  test('test');
+  test(32);
+end.
+

+ 2 - 1
bugs/readme.txt

@@ -305,6 +305,7 @@ Fixed bugs:
                allowed in -Sd mode OK 0.99.11 (PM)
   bug0248.pp   Asm, Wrong assembler code accepted by new assembler reader OK 0.99.11 (PFV)
   bug0250.pp   error with Ansistrings and loops.                    OK 0.99.11 (PFV)
+  bug0251.pp   typed const are not aligned correctly                OK 0.99.11 (PM)
 
 
 Unproducable bugs:
@@ -342,5 +343,5 @@ bug0244.pp   nested procedures can't have same name as global ones
 bug0245.pp   assigning pointers to address of consts is allowed (refused by BP !)
 bug0246.pp   const para can be changed without error
 bug0249.pp   procedure of object cannot be assigned to property.
-bug0251.pp   typed const are not aligned correctly
 bug0252.pp   typecasting not possible within typed const
+bug0253.pp   problem with overloaded procedures and forward