[Issue 6796] New: Several __error with wrong enum definition
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 8 19:13:23 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6796
Summary: Several __error with wrong enum definition
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-10-08 19:12:37 PDT ---
Wrong code:
void main() {
enum int[][] array = [0, 1];
array[0] *= 10;
}
DMD 2.056head shows several "__error":
test.d(2): Error: cannot implicitly convert expression (0) of type int to int[]
test.d(2): Error: cannot implicitly convert expression (1) of type int to int[]
test.d(3): Error: '[(__error),(__error)][cast(uint)0]' is not a scalar, it is a
int[]
test.d(3): Error: incompatible types for (([(__error),(__error)][cast(uint)0])
*= (10)): 'int[]' and 'int'
--
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