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: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@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: -------