www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10279] New: Calling a typesafe variadic trusted function from an safe function results in an error.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10279

           Summary: Calling a typesafe variadic  trusted function from an
                     safe function results in an error.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: tcdknutson gmail.com


--- Comment #0 from Dylan <tcdknutson gmail.com> 2013-06-06 00:03:13 PDT ---
The following code will not compile, however it seems like it's valid: 

ulong foo(string[] strs...)  trusted {
    return strs.length;
}

void bar()  safe {
    foo("asdf");
}


void main() {}

The error "Error: variable maybebug.bar.__arrayArg4 void initializers for
pointers not allowed in safe functions" will be emitted. 

DMD version: 2.064, Windows x64
and DMD version 2.063 on Linux x64

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 06 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10279


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
                 CC|                            |henning still-hidden.de


--- Comment #1 from Henning Pohl <henning still-hidden.de> 2013-06-12 14:09:45
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2168

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 12 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10279



--- Comment #2 from github-bugzilla puremagic.com 2013-06-28 05:59:46 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e78f6e7affbdb984ee5a7ecb831c5a46e9a0e738
fix issue 10279 - Calling a typesafe variadic  trusted function from an
 safe function results in an error.

https://github.com/D-Programming-Language/dmd/commit/e92d69e51b5ac130e6c62968996e6f524cbfe51f
Merge pull request #2168 from hpohl/10279

fix issue 10279 - Calling a typesafe variadic  trusted function from an  safe
function results in an error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 28 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10279


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|unspecified                 |D2
         Resolution|                            |FIXED


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