[Issue 6059] New: No error line number with wrongly assigned enums array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 26 13:26:30 PDT 2011


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list