Bug 15820 – inconsistent error msg on assert between runtime and CT

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-03-22T07:11:13Z
Last change time
2024-12-13T18:47:12Z
Assigned to
No Owner
Creator
Timothee Cour
Moved to GitHub: dmd#17750 →

Comments

Comment #0 by timothee.cour2 — 2016-03-22T07:11:13Z
//dmd -unittest -main -run bug_D20160322T000349.d unittest{ enum temp="bar"; enum b=fun(temp); // err msg:Error: "bar"[0..3] //auto b=fun(temp);// err msg:bar } int fun(string a){ assert(a=="foo", a); return 0; }
Comment #1 by timothee.cour2 — 2016-03-22T07:12:46Z
in other cases i got: Error: ['b', 'a', 'r'][0..3]
Comment #2 by robert.schadek — 2024-12-13T18:47:12Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17750 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB