Bug 14233 – [REG2.067b2] Can't build Algebraic!(This[]) anymore

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-01T11:22:00Z
Last change time
2017-07-19T17:42:21Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
aliloko

Comments

Comment #0 by aliloko — 2015-03-01T11:22:32Z
The following code compiles on DMD 2.064, 2.065, 2.066, 2.067 b1 but not 2.067 b2. ------------------------- import std.variant; alias Atom = Algebraic!(string, This[]); Atom makeNil() { Atom[] values = []; return Atom(values); } void main() { } ------------------------- What I get now: Error: static assert "Cannot store a VariantN!20u[] in a VariantN!(8u, string, This[])" It used to work nicely. I would be nice to have at least a work-around for this.
Comment #1 by k.hara.pg — 2015-03-02T15:07:12Z
Comment #2 by github-bugzilla — 2015-03-04T09:41:56Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/fcc1aab7884bb460de8fce47a3a4ba5fd0e8d785 fix Issue 14233 - Can't build Algebraic!(This[]) anymore In pull#2453, VariantN.opIndex has been changed to return `Variant`. It affects to OpID.catAssign case in handler(A), because it's using `alias E = typeof((*zis)[0]);` to determine concatenated element type. https://github.com/D-Programming-Language/phobos/commit/23702b29fee08c45fcde098f6664a8277e4a5314 Merge pull request #3030 from 9rnsr/fix14233 [REG2.067b2] Issue 14233 - Can't build Algebraic!(This[]) anymore
Comment #3 by github-bugzilla — 2015-03-10T11:46:18Z
Commit pushed to 2.067 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/35ccb6aa9360f3d8cd63cb31ea25e7a596546a96 Merge pull request #3030 from 9rnsr/fix14233 [REG2.067b2] Issue 14233 - Can't build Algebraic!(This[]) anymore
Comment #4 by github-bugzilla — 2015-04-11T12:24:54Z
Comment #5 by github-bugzilla — 2015-06-17T21:03:19Z
Comment #6 by github-bugzilla — 2017-07-19T17:42:21Z
Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/fcc1aab7884bb460de8fce47a3a4ba5fd0e8d785 fix Issue 14233 - Can't build Algebraic!(This[]) anymore https://github.com/dlang/phobos/commit/23702b29fee08c45fcde098f6664a8277e4a5314 Merge pull request #3030 from 9rnsr/fix14233