← Back to index
|
Original Bugzilla link
Bug 11487 – dmd segfaults on writefln in nested template
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-09T12:20:00Z
Last change time
2013-11-22T13:34:34Z
Keywords
ice, pull
Assigned to
nobody
Creator
ellery-newcomer
Comments
Comment #0
by ellery-newcomer — 2013-11-09T12:20:17Z
the code: import std.stdio; template Sequenced() { template Inner( ) { struct SequencedRange(bool is_const) { MultiIndexContainer c; ~this() { writefln("c=%x",c); } } template IndexMixin( alias Range_0){ Range_0!false SeqRange; @property front() inout{ } } } } class MultiIndexContainer { alias Sequenced!().Inner!() M0; mixin M0.IndexMixin!(M0.SequencedRange) ; } the compile: dmd test_sequenced.d the fireworks: Segmentation fault (core dumped) linux, 64 bit, happens on dmd 2.063 and 2.064
Comment #1
by k.hara.pg — 2013-11-21T18:26:46Z
This is a regression from 2.063.
https://github.com/D-Programming-Language/dmd/pull/2848
Comment #2
by github-bugzilla — 2013-11-22T13:34:17Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/7d3752c7ff2a0d6446f492d059dcbaac52c8812f
fix Issue 11487 - dmd segfaults on writefln in nested template
https://github.com/D-Programming-Language/dmd/commit/cf744a4a232ae6b0091bf9b10d97b2256e69a5c2
Merge pull request #2848 from 9rnsr/fix11487 [REG2.063] Issue 11487 - dmd segfaults on writefln in nested template