digitalmars.D.bugs - [Issue 8918] New: Wrong sized literal assigned to fixed size literal error message
- d-bugmail puremagic.com (35/35) Oct 30 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8918
- d-bugmail puremagic.com (12/12) Nov 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8918
http://d.puremagic.com/issues/show_bug.cgi?id=8918 Summary: Wrong sized literal assigned to fixed size literal error message Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2012-10-30 10:58:25 PDT --- This is a spinoff of Issue 8893 struct Foo { char[3] data; } int bar(Foo f) { return f.data[0]; } void main() { enum f = Foo(['A', 'B']); enum int b = bar(f); } Expected error message: test.d(8): Error: cannot implicitly convert expression (['A','B']) of type char[] to char[3] But DMD 2.061alpha gives: test.d(8): Error: cannot implicitly convert expression (['A','B']) of type char[] to char -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 30 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8918 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich gmail.com Resolution| |DUPLICATE --- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-11-29 14:49:22 PST --- *** This issue has been marked as a duplicate of issue 8892 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 29 2012