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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Lars T. Kyllingstad <[email protected]> 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: -------

Reply via email to