Ver código fonte

* better error recovery

git-svn-id: trunk@34923 -
florian 8 anos atrás
pai
commit
2b6ccb3565
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      compiler/pexpr.pas

+ 5 - 1
compiler/pexpr.pas

@@ -1689,7 +1689,11 @@ implementation
            d:=1.0;
            d:=1.0;
          end;
          end;
         if current_settings.fputype=fpu_none then
         if current_settings.fputype=fpu_none then
-          Message(parser_e_unsupported_real);
+          begin
+            Message(parser_e_unsupported_real);
+            result:=cerrornode.create;
+            exit;
+          end;
         if (current_settings.minfpconstprec=s32real) and
         if (current_settings.minfpconstprec=s32real) and
            (d = single(d)) then
            (d = single(d)) then
           result:=crealconstnode.create(d,s32floattype)
           result:=crealconstnode.create(d,s32floattype)