Giter Site home page Giter Site logo

Compiler/execution crash about hac HOT 3 CLOSED

MarcusE1W avatar MarcusE1W commented on August 30, 2024
Compiler/execution crash

from hac.

Comments (3)

zertovitch avatar zertovitch commented on August 30, 2024 1

As a side note, you can, since v.0.081, write:

    subtype Sieve_Range is Integer range 2 .. 100;
    type SieveType is array (Sieve_Range) of Integer;
...
    for element in Sieve_Range loop
      lc := lc + 1;
    end loop;

from hac.

zertovitch avatar zertovitch commented on August 30, 2024

Hi Marcus,
Thanks for the report. If the compiler crashed, there is a bug - no other way!
The reason seems to be that the main procedure is at level 0 and HAC is mislead to think that the referenced identifier is from HAC_Pack.

from hac.

zertovitch avatar zertovitch commented on August 30, 2024

Solved in commit #313 (SF) and 51c6367 (GitHub).
In the bugged version, the compiler was turning the field Adr_or_Sz, which is for a normal procedure the machine code index following the compilation of the subprograms (cf Statements_Part_Setup), into a value of the enumerated type SP_Code. This is why you got different error messages or a compiler crash depending on the length of the subprograms. So in a nutshell, HAC picked randomly a procedure in HAC_Pack, some with parameters, some without (hence different parsing diagnostics), or outside SP_Code's range. Ouch!

from hac.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.