Conditional ? bug

Max Samuha maxter at i.com.ua
Fri Oct 6 04:32:55 PDT 2006


class Test
{
	int foo()
	{
		return 1;
	}
}

void main()
{
	Test test = null;
	int i = test != null ? test.foo() : 0;
}

This throws access violation exception



More information about the Digitalmars-d-bugs mailing list