January 12, 2014 [phobos] [D-Programming-Language/phobos] 3faffc: Avoid calling a qualified constructor in Cycle. | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: 3faffc3c59c804db5e1b16fb0b3bf97f07147785 https://github.com/D-Programming-Language/phobos/commit/3faffc3c59c804db5e1b16fb0b3bf97f07147785 Author: David Nadlinger <code@klickverbot.at> Date: 2014-01-12 (Sun, 12 Jan 2014) Changed paths: M std/range.d Log Message: ----------- Avoid calling a qualified constructor in Cycle. This is actually invalid code, as typeof(this) == inout(this), but Cycle has no inout constructor. This wasn't previously detected, as the constructor was mistakenly flagged as creating an unique object where qualifiers can be disregarded. (The reference parameter is leaked into the Cycle instance, so this is obviously not the case.) Commit: 1f17f63b0c8e18bd19f448efc9f3041d892630a5 https://github.com/D-Programming-Language/phobos/commit/1f17f63b0c8e18bd19f448efc9f3041d892630a5 Author: Andrei Alexandrescu <andrei@erdani.com> Date: 2014-01-12 (Sun, 12 Jan 2014) Changed paths: M std/range.d Log Message: ----------- Merge pull request #1852 from klickverbot/cycle-qualified-constructor Avoid calling a qualified constructor in Cycle. Compare: https://github.com/D-Programming-Language/phobos/compare/19ee4d38515b...1f17f63b0c8e |
Copyright © 1999-2021 by the D Language Foundation