Bug 7011 – No line number error for vector power

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-11-25T16:41:00Z
Last change time
2011-12-17T22:21:56Z
Keywords
diagnostic, patch
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-11-25T16:41:52Z
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
Comment #1 by k.hara.pg — 2011-11-25T23:42:57Z
Comment #2 by bugzilla — 2011-12-17T22:21:56Z