www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11487] New: dmd segfaults on writefln in nested template

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11487

           Summary: dmd segfaults on writefln in nested template
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ellery-newcomer utulsa.edu



12:20:17 PST ---
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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 09 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11487


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
           Severity|normal                      |regression



This is a regression from 2.063.

https://github.com/D-Programming-Language/dmd/pull/2848

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11487




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


[REG2.063] Issue 11487 - dmd segfaults on writefln in nested template

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11487


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2013