[Issue 8587] New: Missing line number or wrong error message with ^^ of array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 25 18:56:26 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8587

           Summary: Missing line number or wrong error message with ^^ of
                    array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2012-08-25 18:56:25 PDT ---
void main() {
    auto a = [10.0, 20.0, 30.0];
    double[3] r;
    r = a[] ^^ 2;
}


It gives no line number (DMD 2.061alpha):

Error: must import std.math to use ^^ operator



This is even worse:

void main() {
    import std.stdio;
    double[2] a = [1.0, 2.0];
    double[2] b;
    b = a[] ^^ 2;
}


It doesn't even tell what the problem is:

Error: undefined identifier 'std'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list