Bug 14731 – [REG2.068a] Error location insufficient when CTFE
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-25T02:39:00Z
Last change time
2017-07-22T12:35:35Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
jiki
Comments
Comment #0 by jiki — 2015-06-25T02:39:00Z
See below code. Dmd reports an error location _inside_of_phobos_ without the instantiation in the application.
import std.array;
void main()
{
enum string list1 = "a b".split(); // error in std/array.d
string list2 = "a b".split(); // cf. error here -- same as 2.067
}
In 2.067, the both reports the same -- error in the application.