Crash on invalid enum usage

Started by
2 comments, last by WitchLord 2 months ago

Someone reported the following code to crash the compiler:

enum A {}
A a = {};

The crash occurs in asCCompiler::CompileInitList, because var->dataType.GetBehaviour() returns null.

Advertisement

Thanks. I'll look into it an have it fixed.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I've fixed this in revision 2901.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement