www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14731] New: [REG:git-head]Error location insufficient when CTFE

https://issues.dlang.org/show_bug.cgi?id=14731

          Issue ID: 14731
           Summary: [REG:git-head]Error location insufficient when CTFE
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: jiki red.email.ne.jp

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.

--
Jun 24 2015