Jump to content
  • Advertisement
Sign in to follow this  
hoboaki

opAssign Bug?

This topic is 3153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. Is this a bug? //----------------------------------------------------------- // AngelScript script code class Hoge { int mValue; Hoge() { mValue = 0; } Hoge@ opAssign(const Hoge &in aObj) { mValue = aObj.mValue; return @this; } }; void main() { Hoge a = Hoge(); } //----------------------------------------------------------- Version: AngelScript r563(Debug Build Version) Compiler: MSVC8 Message: Assertion failed: tempVariables.GetLength() == 0, file ..\..\source\as_compiler.cpp, line 643 Calltrace: msvcr80d.dll!_wassert(const wchar_t * expr=0x007013cc, const wchar_t * filename=0x00701174, unsigned int lineno=643) Line 212 C GameProject.exe!asCCompiler::CompileStatementBlock(asCScriptNode * block=0x0a8c1640, bool ownVariableScope=false, bool * hasReturn=0x0012b2e3, asCByteCode * bc=0x0012b2a0) Line 643 + 0x29 byte C++ GameProject.exe!asCCompiler::CompileFunction(asCBuilder * builder=0x0a8e2b08, asCScriptCode * script=0x0a8e2800, asCScriptNode * func=0x0a8e2878, asCScriptFunction * outFunc=0x0a8e3c10) Line 324 C++ GameProject.exe!asCBuilder::CompileFunctions() Line 524 C++ GameProject.exe!asCBuilder::Build() Line 184 C++ [Edited by - hoboaki on February 25, 2010 9:54:15 AM]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!