← Back to index
|
Original Bugzilla link
Bug 10148 – regression 062=>063: unjustified 'safe function cannot call system function'
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-23T04:27:00Z
Last change time
2013-05-24T01:50:37Z
Keywords
pull
Assigned to
nobody
Creator
thelastmammoth
Comments
Comment #0
by thelastmammoth — 2013-05-23T04:27:26Z
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; } ----
Comment #1
by k.hara.pg — 2013-05-23T22:54:59Z
https://github.com/D-Programming-Language/dmd/pull/2072
Comment #2
by github-bugzilla — 2013-05-24T01:48:39Z
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'
Comment #3
by github-bugzilla — 2013-05-24T01:49:36Z
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'