Advertisement

Crash on invalid enum usage

Started by March 10, 2024 05:04 PM
2 comments, last by WitchLord 8 months, 2 weeks 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.

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

Advertisement

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