Compiler crashes with "Code block underflow."

[code]Test is a room.

When play begins:
If the player is a woman, say “You are a woman.”;
otherwise if the player is a man, say “You are a man.”[/code]

This seems to be a product of the if/otherwise syntax. Switching to Python syntax makes the error go away. The if-conditions don’t seem to be important at all.

Is this a known bug?

Yes, it’s inform7.com/mantis/view.php?id=398 .

The problem that the compiler is trying to report is that you can’t use “otherwise if” with the one-liner form of “if”. You can use the Python form, or this:

When play begins:
	If the player is a woman begin;
		say "You are a woman.";
	otherwise if the player is a man;
		say "You are a man.";
	end if.

Good to know.