https://issues.dlang.org/show_bug.cgi?id=14160
Issue ID: 14160 Summary: [REG2.066] mutable global data access is wrongly accepted in pure function Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid Severity: regression Priority: P1 Component: DMD Assignee: nob...@puremagic.com Reporter: k.hara...@gmail.com Test case int g; int* f1() pure { return &g; // should be rejected, but doesn't } --