Type of a missing actual parameter

Manfred Nowak svv1999 at hotmail.com
Wed Oct 9 08:12:45 PDT 2013


Andrej Mitrovic wrote:

> Do you have a test-case?

On reducing the case it turned out, that the error message blaimed the 
wrong file for a really existing "Range violation". By pure chance the 
lines in the wrongly given file were these:

      AST[] astStar= visit( data.ast[0]);
      foreach( elem; data.ast[ 1 .. $])
        astStar~= visit( elem);
      // <-- erroneous line

--- and the second parameter was missing, but the `,' was introduced by 
another bug.

I will file a bug report on "error message gives wrong filename".

-manfred



More information about the Digitalmars-d mailing list