[Issue 4915] New: auto return type escapes function purity
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 22 08:04:14 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4915
Summary: auto return type escapes function purity
Product: D
Version: 2.039
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: tomash.brechko at gmail.com
--- Comment #0 from Tomash Brechko <tomash.brechko at gmail.com> 2010-09-22 08:03:34 PDT ---
dmd 2.039 doesn't produce error for pure function with auto return type that
violates purity:
int global;
pure auto f()
{
global = 1;
return 0;
}
compiles without errors.
--
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