Thread overview | |||||
---|---|---|---|---|---|
|
October 09, 2011 [Issue 6796] New: Several __error with wrong enum definition | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@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: ------- |
May 01, 2012 [Issue 6796] Several __error with wrong enum definition | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6796 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-05-01 14:46:17 PDT --- What is the problem ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 01, 2012 [Issue 6796] Several __error with wrong enum definition | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6796 --- Comment #2 from bearophile_hugs@eml.cc 2012-05-01 15:19:09 PDT --- (In reply to comment #1) > What is the problem ? I think the compiler should not show "__error". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation