www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - compiler message

linux dmd 0.150

void main()
{
	charp[ foo = "foo";
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
}
br.d(15): found ';' when expecting ']'
br.d(15): found 'int' when expecting ';' following 'statement'

would be better is the compiler could mention line 3 like:

void main()
{
	char[ foo = "foo";
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
	int a;
}
br.d(3): found ';' when expecting ']'
br.d(4): no identifier for declarator char[foo = "foo"]
br.d(4): semicolon expected, not 'int'
Mar 29 2006