ID:1469416
 
BYOND Version:504.1225
Operating System:Windows Vista Business
Web Browser:Chrome 32.0.1700.72
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
A type can have its parent_type set to itself, causing an infinite loop during compile. Found this out when I accidentally copy-pasted "parent_type = /ChatCommand" into the wrong class def and tried to compile. Didn't work too well.

Numbered Steps to Reproduce Problem:
1. Create type
2. Set that type's parent_type to itself

Code Snippet (if applicable) to Reproduce Problem:
ChatCommand
var/Command = ""
var/MinPowerLevel = RankModerator

parent_type = /ChatCommand


Expected Results:
Compile error

Actual Results:
Compiler hangs at 100% of CPU Core

Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? N/A
On other computers? N/A

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Not tested.

Workarounds:
Don't set a type's parent_type to itself.
That is strange, I remember getting 'infinite cross reference' compile errors for things like this in the past, definitely a bug that it's not triggering in this instance.
I goofed the version; I'm actually compiling on 504.1225. Updated the OP.
loading TestEnvironment.dme
error: compiler passed out (please report this bug)
TestEnvironment.dm:2:error: "": compile failed (possible infinite cross-reference loop)
TestEnvironment.dm:3:error: RankModerator: compile failed (possible infinite cross-reference loop)
TestEnvironment.dm:5:error: parent_type: compile failed (possible infinite cross-reference loop)
TestEnvironment.dm:5:error: /ChatCommand: compile failed (possible infinite cross-reference loop)
TestEnvironment.dmb - 4 errors, 0 warnings


This is on 506.1246. I'm not sure what "compiler passed out" is for, which is a bit concerning.