www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11086] New: dmd segfault

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

           Summary: dmd segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: pycerl qq.com


--- Comment #0 from Zhouxuan <pycerl qq.com> 2013-09-21 10:18:10 PDT ---
//test.d

struct A
{
    foo!(A) l1,l2;
}

dmd -main test.d will segfault

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


monarchdodra gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra gmail.com
           Severity|normal                      |regression


--- Comment #1 from monarchdodra gmail.com 2013-09-21 10:34:27 PDT ---
This is a 2.061 => 2.062 regression:

2.061:
//---
main.d(3): Error: template instance foo!(A) template 'foo' is not defined
main.d(3): Error: foo!(A) is used as a type
main.d(3): Error: foo!(A) is used as a type
END
//---

2.062:
//---
main.d(3): Error: template instance foo!(A) template 'foo' is not defined
main.d(3): Error: foo!(A) is used as a type
CRASH
//---

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


Infiltrator <lt.infiltrator gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator gmail.com


--- Comment #2 from Infiltrator <lt.infiltrator gmail.com> 2013-09-21 16:11:31
PDT ---
This looks to be fixed in 2.063:
//---
/d741/f473.d(2): Error: template instance foo!(A) template 'foo' is not defined
END
//---

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


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

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


--- Comment #3 from Kenji Hara <k.hara.pg gmail.com> 2013-09-21 23:22:05 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2583

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



--- Comment #4 from github-bugzilla puremagic.com 2013-09-22 02:35:39 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/63473a81679298affd8b1791e20513d07a810ddd
fix Issue 11086 - dmd segfault

https://github.com/D-Programming-Language/dmd/commit/b1e8e111c2024472f5abd64487f1bff0e32b17e3
Merge pull request #2583 from 9rnsr/fix11086

[REG2.062] Issue 11086 - dmd segfault

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


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


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