http://d.puremagic.com/issues/show_bug.cgi?id=5006


kenn...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kenn...@gmail.com


--- Comment #5 from kenn...@gmail.com 2011-02-21 11:41:26 PST ---
Looks like this is fixed in v2.052 or earlier.

Now bearophile's 1st program gives:

x.d(4): Error: pure function 'bar' cannot access mutable static data 'z'
x.d(5): Error: pure nested function 'bar' cannot access mutable data 'x'
x.d(5): Error: pure function 'bar' cannot access mutable static data 'z'

and Lewis' program gives:

x.d(8): Error: pure function 'leapYear' cannot call impure function 'writeln'

as expected, although I think 'bar' should be able to access 'x' in
bearophile's 1st program.

On the other hand, bearophile's 2nd program now result in ICE (at least on Mac
OS X)

Internal error: ../ztc/machobj.c 1805

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

Reply via email to