Menu

Internal Error #015

2011-01-17
2013-04-25
  • Garry Adamson

    Garry Adamson - 2011-01-17

    Hello, I'm just getting started with this language and I've run up against a slight problem. One of my projects was compiling quite nicely, no crashes, no bugs (thus far, just wait till the real testing starts) then I start getting a compile time error, specifically :

    Fatal error: Internal error #015.

    Dumb question, what the hell does Fatal error: Internal error #015 mean? And, more importantly, how do I get rid of it? I've made no system or code changes recently, one moment it was compiling fine the next I start getting this error. Sorry if this is a newbie question but, like I said, I'm just getting started.

    Thanks for any help in advance …

     
  • Javier Santo Domingo

    Hello Gary,

    The error you are experiencing is related to a reference to an unknown type. You can find the call to the die() routine passing 15 in parser.c:6191;6432 in the last compiler source code (the MPC.3.3.IDE I released some days ago), and this is also present in all the previous versions published (seems that this old-style cryptic error reporting is present since the first versions of the compiler; and more, it is used only for a few compiler errors: the 10..26 range, can't tell why).

    Here I post you (and everyone else) a short way to get that error:

    program NewProject123;
      procedure fire_Internal_error_015(a: unknown);
      var x: integer;
      begin
        x := x + a;
      end;
    begin
    end.
    

    The "Internal error #015" also is shown when a you declare and use a variable of an unknown type, but since in that case is also shown an E415 error message (which you are not mentioning), I guess you have a piece of code like the one I'm posting: a routine with a parameter of an unknown type. To fix the error you are experiencing, search for that wrong reference and correct your code. From my side I will add a "Replace cryptic error messages for something more meaningful" to my already really large TODO list.

    Thanks for your report!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.