www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10148] New: regression 062=>063: unjustified 'safe function cannot call system function'

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

           Summary: regression 062=>063: unjustified 'safe function cannot
                    call system function'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-05-23 04:27:26 PDT ---
2.062:
compile works

2.063(beta5):
compile error that doesn't make sense:
a.d(7): Error: safe function 'a.foo2!(int).foo2.A!(int).A.foo3!(int).foo3'
cannot call system function 'a.foo1'
a.d(16): Error: template instance a.foo2!(int).foo2.A!(int).A.foo3!(int) error
instantiating


a.d:
----
void foo1(){}

auto foo2(S)() {
    struct A(S){
        void foo3(T2)(){
            foo1();
        }
        this(S a){
        }
    }
    return A!int(0);
}

void main(){
    foo2!int.foo3!int;
}
----

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-05-23 22:54:59 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2072

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



--- Comment #2 from github-bugzilla puremagic.com 2013-05-24 01:48:39 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/cf3fa533dba1133bfc9c85141b5d9b9b7abfb216
fix Issue 10148 - unjustified 'safe function cannot call system function'

https://github.com/D-Programming-Language/dmd/commit/59693a8e4e750f3848d415de6100c1b30082e3ef
Merge pull request #2072 from 9rnsr/fix10148

[REG2.063a] Issue 10148 - unjustified 'safe function cannot call system
function'

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



--- Comment #3 from github-bugzilla puremagic.com 2013-05-24 01:49:36 PDT ---
Commit pushed to 2.063 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/835ea085971819115536291c2d66488b3358d8d1
Merge pull request #2072 from 9rnsr/fix10148

[REG2.063a] Issue 10148 - unjustified 'safe function cannot call system
function'

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


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


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