www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9406] New: (Regression: 2.061) Stack overflow from a forward reference error

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



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: -------
Jan 26 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9406




15:10:22 PST ---

 Invalid code, accidentally reduced from Issue8785:
Actually I don't know whether it's invalid, but the stack overflow was found by accident. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9406




Introduced by:
https://github.com/d-programming-language/dmd/commit/9b4c8ee52edfbeef40442219b877a64a051018c3

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9406


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull



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


 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
In the code, there is no forward reference. So, the error "cannot resolve forward reference" is not correct. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9406




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fb0aca7d5c7d103ea545574101355282edeba90b
fix Issue 9406 - (Regression: 2.061) Stack overflow from a forward reference
error

https://github.com/D-Programming-Language/dmd/commit/6bb0a54cb8656c6debaac733118036ec3f48bbc6


Issue 9406 - (Regression: 2.061) Stack overflow from a forward reference error

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 29 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9406


Walter Bright <bugzilla digitalmars.com> changed:

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


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