Thread overview
[Issue 9371] New: @safe works or doens't depending on position
Jan 22, 2013
Dmitry Olshansky
[Issue 9371] @safe works or doesn't depending on the position
Sep 09, 2013
Dmitry Olshansky
January 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9371

           Summary: @safe works or doens't depending on position
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: dmitry.olsh@gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-01-22 11:53:40 PST ---
@system:  //required to show the bug

@safe void foo() {}
void bar() @safe {} //this is not @safe somehow!!

@safe void test()
{
    foo();
    bar();
}


DMD 2.061 outputs:

bug_safe.d(9): Error: safe function 'bug_safe.test' cannot call system function
'bug_safe.bar'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9371


monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra@gmail.com
           See Also|                            |http://d.puremagic.com/issu
                   |                            |es/show_bug.cgi?id=9401


--- Comment #1 from monarchdodra@gmail.com 2013-01-26 06:28:36 PST ---
Possibly related: http://d.puremagic.com/issues/show_bug.cgi?id=9401

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9371


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #2 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2013-09-09 10:36:52 PDT ---
*** This issue has been marked as a duplicate of issue 9401 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------