Thread overview |
---|
October 20, 2010 [Issue 5088] New: Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5088 Summary: Cannot cast const(int) to long in @safe function Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2010-10-20 15:24:31 PDT --- Even though they are value types. It seems to want to you to do cast(const(long)) --- @safe: void foo5088(const(int)[] x) { long a = cast(long)x[0]; } void main() { int[2] a; a[] = 6; foo5088(a); } ---- bug.d(36): Error: cast from const(int) to ulong not allowed in safe code -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 09, 2011 [Issue 5088] Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5088 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |yebblies@gmail.com --- Comment #1 from yebblies <yebblies@gmail.com> 2011-06-08 22:10:02 PDT --- https://github.com/D-Programming-Language/dmd/pull/97 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2011 [Issue 5088] Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5088 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha@yahoo.com --- Comment #2 from yebblies <yebblies@gmail.com> 2011-06-11 01:01:22 PDT --- *** Issue 4628 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2011 [Issue 5088] Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5088 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zan77137@nifty.com --- Comment #3 from yebblies <yebblies@gmail.com> 2011-06-11 01:01:40 PDT --- *** Issue 4689 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 11, 2011 [Issue 5088] Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5088 --- Comment #4 from yebblies <yebblies@gmail.com> 2011-06-11 07:37:11 PDT --- New pull request: https://github.com/D-Programming-Language/dmd/pull/109 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 26, 2011 [Issue 5088] Cannot cast const(int) to long in @safe function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=5088 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2011-06-26 16:27:58 PDT --- https://github.com/D-Programming-Language/dmd/commit/952795ec69ad7d704c0848bb160521a435749c42 -- 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