🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Compiler crash on double function compiler error

Started by
2 comments, last by WitchLord 5 years, 6 months ago

The following code will first cause the error "A function with the same name and parameters already exists", and then crash:


class Foo
{
	void a() {}
	void a() {}
}

class Bar : Foo
{
	void a() override {}
}

class FooBar : Bar
{
}

void Test()
{
	FooBar@ b = FooBar();
	b.a();
}

The empty FooBar class inheriting Bar is required, it doesn't crash without.

Advertisement

Thanks. I'll have it fixed before the release.

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 2575.

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