April 20, 2012 [dmd-internals] [D-Programming-Language/dmd] 4d2810: fix Issue 7453 - Can't return value from within op... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 4d28102c7a20341db6239bd843f406d6a5a45725 https://github.com/D-Programming-Language/dmd/commit/4d28102c7a20341db6239bd843f406d6a5a45725 Author: k-hara <k.hara.pg@gmail.com> Date: 2012-04-20 (Fri, 20 Apr 2012) Changed paths: M src/statement.c M src/statement.h A test/runnable/test7453.d Log Message: ----------- fix Issue 7453 - Can't return value from within opApply Inside main function, and after first semantic, ReturnStatement::exp is filled with IntegerExp(0). Then in second semantic, implicit0 doesn't become 1, and error occurs. ReturnStatement object should keep implicit0 value for repeating call of semantic(). Commit: 03e8c2656d03c90cd2bda72abb8b6392556f1017 https://github.com/D-Programming-Language/dmd/commit/03e8c2656d03c90cd2bda72abb8b6392556f1017 Author: Walter Bright <walter@walterbright.com> Date: 2012-04-20 (Fri, 20 Apr 2012) Changed paths: M src/statement.c M src/statement.h A test/runnable/test7453.d Log Message: ----------- Merge pull request #892 from 9rnsr/fix7453 Issue 7453 - Can't return value from within opApply Compare: https://github.com/D-Programming-Language/dmd/compare/79f502a...03e8c26 |
Copyright © 1999-2021 by the D Language Foundation