digitalmars.D.bugs - [Issue 5929] New: Casting to void, Internal error: ..\ztc\cod1.c 3136
- d-bugmail puremagic.com (27/27) May 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5929
- d-bugmail puremagic.com (12/12) May 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5929
http://d.puremagic.com/issues/show_bug.cgi?id=5929 Summary: Casting to void, Internal error: ..\ztc\cod1.c 3136 Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: trivial Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: pszturmaj tlen.pl --- Comment #0 from Piotr Szturmaj <pszturmaj tlen.pl> 2011-05-05 08:53:25 PDT --- module main; void test(void[] a) { } void main(string[] argv) { long num; test(cast(void[])[num]); // ok test([cast(void)num]); // Internal error: ..\ztc\cod1.c 3136 } I think the last construct should be disallowed by the compiler. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 05 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5929 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kennytm gmail.com Resolution| |DUPLICATE --- Comment #1 from kennytm gmail.com 2011-05-05 11:45:10 PDT --- *** This issue has been marked as a duplicate of issue 4494 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 05 2011