Bug 14642 – [REG2.066] ICE in ctfeInterpret

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-06-02T10:54:00Z
Last change time
2015-06-17T21:05:41Z
Keywords
ice, pull
Assigned to
nobody
Creator
maor

Attachments

IDFilenameSummaryContent-TypeSize
1525code.tgza tar containing 2 tars (each with the code reproducing the bug on a specific dmd version)application/gzip7116

Comments

Comment #0 by maor — 2015-06-02T10:54:06Z
Created attachment 1525 a tar containing 2 tars (each with the code reproducing the bug on a specific dmd version) Attached is the dustmite reduced code. This bug reproduces on both dmd 2.066.1 & 2.067.1 (but the code reproducing it is slightly different, therefore, the attachment contains a tar with 2 tars in it , one for each version of dmd). The reduced code has some compilation errors (the original one didn't) but the seg fault still happens. after untarring the code just run: for 2.066.1: dmd -g -w -c weka/XXX/XXZ/XXY.d -ofsome_obj.o for 2.067.1: dmd -c weka/BXX/IXX/DXX.d
Comment #1 by dlang-bugzilla — 2015-06-03T01:04:55Z
Comment #2 by k.hara.pg — 2015-06-03T10:34:47Z
Reduced test case from the second tar for 2.067.1: alias TypeTuple(T...) = T; struct X { static struct NA() { X x; void check() { x.func(); } } alias na = NA!(); auto func() { Y* p; p.func(); } } struct Y { mixin Mix; } template Mix() { void func() { auto z = Z(null); } } struct Type(size_t v) {} enum errVal = errorValue; struct Z { Type!errVal v; }
Comment #3 by k.hara.pg — 2015-06-03T14:21:45Z
Comment #4 by github-bugzilla — 2015-06-03T19:13:29Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e555b562d733e277773bc632c12917505e680b10 fix Issue 14642 - ICE in ctfeInterpret https://github.com/D-Programming-Language/dmd/commit/a74d774ac1b5402895775b3df9a8cddcd7960f2e Merge pull request #4715 from 9rnsr/fix14642 [REG2.066] Issue 14642 - ICE in ctfeInterpret
Comment #5 by k.hara.pg — 2015-06-04T06:08:35Z
*** Issue 14240 has been marked as a duplicate of this issue. ***
Comment #6 by github-bugzilla — 2015-06-17T21:05:41Z