Mercurial > projects > ldc
comparison gen/toir.cpp @ 1513:8a5570ddad25
Emit file and line info for 'Array operation ... not recognized' error.
Fixes #326.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 22 Jun 2009 19:31:25 +0200 |
parents | 09734fb929c0 |
children | ad7f2f1862d6 |
comparison
equal
deleted
inserted
replaced
1512:09734fb929c0 | 1513:8a5570ddad25 |
---|---|
610 // valid array ops would have been transformed by optimize | 610 // valid array ops would have been transformed by optimize |
611 if ((t1->ty == Tarray || t1->ty == Tsarray) && | 611 if ((t1->ty == Tarray || t1->ty == Tsarray) && |
612 (t2->ty == Tarray || t2->ty == Tsarray) | 612 (t2->ty == Tarray || t2->ty == Tsarray) |
613 ) | 613 ) |
614 { | 614 { |
615 error("Array operation %s not recognized", base->toChars()); | 615 base->error("Array operation %s not recognized", base->toChars()); |
616 fatal(); | 616 fatal(); |
617 } | 617 } |
618 } | 618 } |
619 | 619 |
620 ////////////////////////////////////////////////////////////////////////////////////////// | 620 ////////////////////////////////////////////////////////////////////////////////////////// |