http://d.puremagic.com/issues/show_bug.cgi?id=6059

           Summary: No error line number with wrongly assigned enums array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-05-26 13:22:12 PDT ---
D2 code:

enum Foo : char { A = 'A' }
void main() {
    Foo[][] bar = [cast(Foo[])"AA", "AA"];
}


DMD 2.053 gives an error message without line number, plus shows __error and
_error_ labels:

Error: incompatible types for (("AA") ? ("AA")): 'Foo[]' and 'string'
test.d(3): Error: cannot implicitly convert expression ([(__error),(__error)])
of type _error_[] to Foo[][]


(Normal level of priority because one of the two error messages shows a line
number.)


See also bug 6057

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to