[Issue 9148] 'pure' is broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 14 12:59:26 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=9148
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2014-01-14 12:59:17 PST ---
Related:
void foo(const int[] a) {
int bar() pure {
return a[0];
}
}
void main() {}
DMD 2.065alpha gives (also note the duplicated error message):
test1.d(3): Error: pure nested function 'bar' cannot access mutable data 'a'
test1.d(3): Error: pure nested function 'bar' cannot access mutable data 'a'
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list