Bug #191

fixing a compiler trap after syntax error

Added by J. Templ about 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:11/09/2018
Priority:NormalDue date:
Assignee:J. Templ% Done:

0%

Category:-
Target version:1.7.2
Forum topic:https://forum.blackboxframework.org/viewtopic.php?f=40&t=731#p6948

Description

The compiler produces a NIL dereference (read) trap instead of an error message
for the following example:

MODULE TestCompilerError;
VAR string: POINTER TO ARRAY OF CHAR;
BEGIN NEW(string, LEN 5 1); ...

Reported by Rainer Neubauer

Associated revisions

Revision 5908d775
Added by J. Templ about 3 years ago

fixed a Compiler trap by erroneous program. Refs: #191.
The following program caused a trap:

MODULE TestCompilerError;
VAR string: POINTER TO ARRAY OF CHAR;
BEGIN NEW; ...

Signed-off-by: Josef Templ <>

Revision 55cb8c46
Added by J. Templ about 3 years ago

fixed a Compiler trap by erroneous program. Refs: #191.
The following program caused a trap:

MODULE TestCompilerError;
VAR string: POINTER TO ARRAY OF CHAR;
BEGIN NEW; ...

Signed-off-by: Josef Templ <>

Revision a52a74d8
Added by J. Templ about 3 years ago

fixed a Compiler trap by erroneous program. Refs: #191.
The following program caused a trap:

MODULE TestCompilerError;
VAR string: POINTER TO ARRAY OF CHAR;
BEGIN NEW; ...

Signed-off-by: Josef Templ <>

Revision 7a362924
Added by R. Campbell about 3 years ago

Merge pull request #208 from BlackBoxCenter/issue-#191

fixed a Compiler trap by erroneous program. Refs: #191.

History

#1 Updated by J. Templ about 3 years ago

  • Forum topic set to https://forum.blackboxframework.org/viewtopic.php?f=40&t=731#p6948

#2 Updated by J. Templ about 3 years ago

  • Description updated (diff)

#3 Updated by J. Templ about 3 years ago

  • Description updated (diff)

#4 Updated by R. Campbell about 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF