digitalmars.D.bugs - [Issue 10296] New: Nested template function call and purity inference bug
- d-bugmail puremagic.com (33/33) Jun 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10296
- d-bugmail puremagic.com (10/10) Jun 07 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10296
- d-bugmail puremagic.com (11/11) Jun 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10296
- d-bugmail puremagic.com (9/9) Jun 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10296
http://d.puremagic.com/issues/show_bug.cgi?id=10296 Summary: Nested template function call and purity inference bug Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com This is similar to bug 10288. Nested function 'bar' accesses to outer scope variable 'a', so it's inferred as impure. But, 'bar' does not access to variables out of 'foo', so the outer function 'foo' should be still inferred as pure so calling 'bar' does not break its purity. pure void main() { foo(); } void foo()() { int[3] a; void bar()() { a[1] = 2; } bar(); pragma(msg, typeof(bar!())); // nothrow safe void() } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 07 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10296 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull https://github.com/D-Programming-Language/dmd/pull/2149 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 07 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10296 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/acbaadd13c69b82d3485bb3bbc8ab7a3041f2548 fix Issue 10296 - Nested template function call and purity inference bug https://github.com/D-Programming-Language/dmd/commit/f38a573472bf576fdf9319eacdc75e4b5c345d7c Issue 10296 - Nested template function call and purity inference bug -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 09 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10296 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 10 2013