View mode: basic / threaded / horizontal-split · Log in · Help
February 04, 2013
Internal error: ..\ztc\symbol.c 1025 with a reproduction
With the attached code it is possible to produce the error 
mentioned in the subject. Bug #9209 has a similar error message, 
but quite different code.

DMD32 2.061 on windows.

I don't know, if everybody should go ahead and create tickets in 
the tracker, so I didn't. Please feel free to create it, if it 
doesn't overlap with another.

Here you go:

import std.string;

struct Foo {
	this(string bar) { 	}
	
	Foo opSlice(size_t start, size_t end) const {
		return Foo();
	}
	
	size_t opDollar(int dim)() const if(dim == 0) { return 1; }
}

int main(string[] ) {
	auto b = Foo("bar")[0..$];
	return 0;
}
February 04, 2013
Re: Internal error: ..\ztc\symbol.c 1025 with a reproduction
On Monday, 4 February 2013 at 21:12:08 UTC, Matthias Dondorff 
wrote:
> I don't know, if everybody should go ahead and create tickets 
> in the tracker, so I didn't. Please feel free to create it, if 
> it doesn't overlap with another.

Anyone can create tickets in the tracker. Please feel free to do 
so :-)
Top | Discussion index | About this forum | D home