D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7011 - No line number error for vector power
Summary: No line number error for vector power
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 major
Assignee: No Owner
URL:
Keywords: diagnostic, patch
Depends on:
Blocks:
 
Reported: 2011-11-25 16:41 UTC by bearophile_hugs
Modified: 2011-12-17 22:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-11-25 16:41:52 UTC
This code doesn't compile and its error message doesn't even tell the line number:


void main() {
    auto a = [1, 2, 3];
    a[] ^^= 2;
}


DMD 2.057head gives:

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