[Issue 9406] New: (Regression: 2.061) Stack overflow from a forward reference error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 26 15:08:32 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9406

           Summary: (Regression: 2.061) Stack overflow from a forward
                    reference error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-26 15:08:31 PST ---
Invalid code, accidentally reduced from Issue8785:

mixin template Mixin() { }

struct S
{
    template t1()
    {
        mixin Mixin t1;
    }
}

void main()
{
    S s1;
    s1.t1!();
}

2.060: 
$ dmd test.d
> test.d(7): Error: mixin test.S.t1().Mixin!() cannot resolve forward reference
> test.d(14): Error: expression has no value

2.061:
$ dmd test.d
> Stack overflow

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


More information about the Digitalmars-d-bugs mailing list