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

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

See also bug 6057

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to