[Issue 10359] New: Pointer slicing allowed in @safe mode
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 14 14:39:41 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10359
Summary: Pointer slicing allowed in @safe mode
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at kyllingen.net
--- Comment #0 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2013-06-14 14:39:40 PDT ---
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];
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list