[Issue 7205] New: Function attribute inference fails in case of mutual dependencies
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 2 14:07:30 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7205
Summary: Function attribute inference fails in case of mutual
dependencies
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-01-02 14:07:28 PST ---
Tested with DMD 2.057.
void foo()(){bar();}
void bar()(){foo();}
void qux() @safe pure nothrow{foo();}
Error: pure function 'qux' cannot call impure function 'foo'
Error: safe function 'qux' cannot call system function 'foo'
Error: foo is not nothrow
Error: function tt.qux 'qux' is nothrow yet may throw
The code should compile.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list