Bug 14463 – [REG2.067] DMD crashes compiling module level immutable struct that takes an array in ctor

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-19T13:16:00Z
Last change time
2015-04-26T00:04:46Z
Keywords
CTFE, ice, pull
Assigned to
nobody
Creator
dzugaru

Comments

Comment #0 by dzugaru — 2015-04-19T13:16:30Z
DMD on Windows v2.067 (seems to work on dpaste (presumably 2.065 there)) module main; struct Boo { private int[1] c; this(int[] x) { c = x; } } immutable Boo a = Boo([1]); Works without "immutable", works if declaration of "a" is moved below module level, works with constructor accepting plain value.
Comment #1 by dzugaru — 2015-04-19T13:46:33Z
c[] = x[]; works too
Comment #2 by k.hara.pg — 2015-04-22T01:04:53Z
Comment #3 by github-bugzilla — 2015-04-22T01:27:57Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/20f0f7c3ad6a78c668dbc7f8dfd644bc39c7fd0b fix Issue 14463 - [REG2.067] DMD crashes compiling module level immutable struct that takes an array in ctor https://github.com/D-Programming-Language/dmd/commit/d55f2cf7a66744b5c1d5db3f9861a8c5af260368 Merge pull request #4604 from 9rnsr/fix14463 [REG2.067] Issue 14463 - DMD crashes compiling module level immutable struct that takes an array in ctor
Comment #4 by github-bugzilla — 2015-04-26T00:04:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/20f0f7c3ad6a78c668dbc7f8dfd644bc39c7fd0b fix Issue 14463 - [REG2.067] DMD crashes compiling module level immutable struct that takes an array in ctor https://github.com/D-Programming-Language/dmd/commit/d55f2cf7a66744b5c1d5db3f9861a8c5af260368 Merge pull request #4604 from 9rnsr/fix14463