www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10481] New: out of memory error

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

           Summary: out of memory error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: oivind.loe gmail.com


--- Comment #0 from Řivind <oivind.loe gmail.com> 2013-06-26 13:04:05 PDT ---
The following code, reduced by dustmite, causes an out of memory error in dmd:


struct A {
}

void get(T0 = T1.Req, Params...)(Params , T1) {
}

void main() {
  auto xxx = get!A;
}


Output from dmd master (Jun 25 2013, 9fad79d33406c82cbdec62ac3e6e5ad2e29db4e4)
is:

test.d(7): Error: undefined identifier T1, did you mean alias T0?
Error: out of memory

In my original code, I only get the "out of memory" error. The test above gives
the following DMD error on v2.060, v2.062, e.g. no "out of memory":

test.d(7): Error: undefined identifier T1, did you mean alias T0?
test.d(11): Error: template instance test.get!(A) error instantiating

v2.063.2 gives simply:

Error: out of memory

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


hsteoh quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh quickfur.ath.cx


--- Comment #1 from hsteoh quickfur.ath.cx 2013-06-29 13:36:01 PDT ---
git bisect indicates that this problem was introduced by commit
4eece51e6368f58b67d3ac3d4f55826dd334a4e4 (apparently a fix for 5886)

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


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

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


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-07-08 22:31:18 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2323

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



--- Comment #3 from github-bugzilla puremagic.com 2013-07-09 00:40:49 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/1365ebdc3c9176229513d2a5a30bf20c2dc50e37
fix Issue 10481 - out of memory error

https://github.com/D-Programming-Language/dmd/commit/5378ea8f2c19abe7643418bf15401e617d6a1bcd
Merge pull request #2323 from 9rnsr/fix10481

[REG2.063] Issue 10481 - out of memory error

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


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: -------
Jul 09 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10481


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thelastmammoth gmail.com


--- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2013-08-06 22:10:56 PDT ---
*** Issue 10737 has been marked as a duplicate of this issue. ***

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