Menu

#431 Compiler stops without messages when encountering an undefined variable  Edit

compiler
open
None
2025-11-30
2024-12-02
No

The variable "terrminal" is not defined and the compiler stops compilation without error message.

MODULE(fehlerbeispiel);

SYSTEM;
stdout: StdOut;

PROBLEM;
SPC stdout DATION OUT SYSTEM ALPHIC GLOBAL;
DCL terminal DATION OUT ALPHIC DIM(*,80) FORWARD CREATED(stdout);

hauptteil: TASK PRIO 10 MAIN;

OPEN terrminal;
PUT 'Testprogramm für den Compiler-Fehler' TO terminal BY A, SKIP;
CLOSE terminal;
END;

MODEND;

Discussion

  • Rainer Müller

    Rainer Müller - 2024-12-02

    I get the following message:

    open.prl:12:6: error: 'terrminal' is not defined
    OPEN terrminal;
         ^
    compilation aborted with errors
    
     
  • Anonymous

    Anonymous - 2024-12-03

    Is the compiler up to date?

    Maybe it would be helpful in the future to add a new option to the script prl like --version which shows the last commit date from git and the build date using the commands below

    git log -1 --date=format:'%b %d %Y %H:%M:%S %z'
    >> Author: Marcel Schaible <marcel.schaible@fernuni-hagen.de>
    >> Date:   Oct 27 2024 10:14:51 +0100
    >>
     >>   Added Ubuntu 22.04.5 to installPackages
    
    date +"%b %d %Y %H:%M:%S %z"
    >> Dec 03 2024 06:33:52 +0100
    
     
  • Marcel Schaible

    Marcel Schaible - 2025-11-30
    • summary: Compiler stops without messages when encountering an udefined variable --> Compiler stops without messages when encountering an undefined variable
    • status: accepted --> open
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB