← Back to index
|
Original Bugzilla link
Bug 10359 – Pointer slicing allowed in @safe mode
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-14T14:39:00Z
Last change time
2013-10-03T20:58:40Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0
by bugzilla — 2013-06-14T14:39:40Z
The following code should be invalid in @safe mode, but is currently accepted by the compiler: void foo(int* p) @safe { auto a = p[0 .. 10]; }
Comment #1
by henning — 2013-06-19T07:46:23Z
https://github.com/D-Programming-Language/dmd/pull/2226
Comment #2
by github-bugzilla — 2013-06-19T09:58:59Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f3b502ba585d332f4ea7dd98c918f7b8b79d9c59
fix issue 10359 - Pointer slicing allowed in @safe mode
https://github.com/D-Programming-Language/dmd/commit/a80a4cc99e949a84398a91cba3e751a4c571c04c
Merge pull request #2226 from hpohl/10359 fix issue 10359 - Pointer slicing allowed in @safe mode
Comment #3
by github-bugzilla — 2013-06-20T19:24:56Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/f1381cf7a00b3d2bcdfa8989798cef4a032f08a9
fix issue 10359 - ICE on printing ClassReferenceExp
Comment #4
by github-bugzilla — 2013-06-27T18:53:33Z
Commit pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/a4d71338f98a133038f42276a9ed50398c977f05
[appender] Mark pointer slicing @trusted (fix for issue 10359)
Comment #5
by k.hara.pg — 2013-10-03T20:58:40Z
*** Issue 11167 has been marked as a duplicate of this issue. ***