Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002018Core InformActionspublic2017-05-31 11:532017-05-31 21:28
Assigned To 
Platformx86OSWindowsOS Version7
Product Version6M62 
Target VersionFixed in Version 
Summary0002018: The compiler crashes with Error 10 when an if statement in an after rule has a simple syntax error
DescriptionIf a simple "if" condition in an "after" rule is terminated with semicolon (;), instead of a colon (:), the Inform7 compiler will crash with saying "Translating the Source - Failed " with compiler error 10.
Minimal Source Text To Reproduce
"test" by Eric Conrad

Erewhon is a room.

The widget is a thing.  The widget is here.  The widget can be unused.  The widget is unused.

After taking the widget:
	if the widget is unused;
		say "foo";

Additional InformationThe "after" rule was of course incorrect -- the syntactically correct code is:

After taking the widget:
if the widget is unused: [ instead of ;]
say "foo";

TagsNo tags attached.
Effect(critical) Compiler crashes
Attached Files

- Relationships
duplicate of 0001837confirmed Crash on wrongly-terminated if phrase 

-  Notes
econrad (reporter)
2017-05-31 18:30

The issue is more general than just the "after" clause. For example, the following code has the same syntax error and also crashes with Error 10:

"bugtester" by Eric Conrad

Bug Spray is a room.

The roach is an animal in Bug Spray. The roach can be red or blue. The roach is blue.

Stepping on is an action applying to one visible thing. Understand "step on [something]" as stepping on.

Before stepping on the roach:
if the roach is blue; [note semicolon here]
say "boo!"

- Issue History
Date Modified Username Field Change
2017-05-31 11:53 econrad New Issue
2017-05-31 18:30 econrad Note Added: 0004693
2017-05-31 21:28 zarf Relationship added duplicate of 0001837

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker