Bug 10481 – out of memory error

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-26T13:04:00Z
Last change time
2013-08-06T22:10:56Z
Keywords
ice, pull
Assigned to
nobody
Creator
oivind.loe

Comments

Comment #0 by oivind.loe — 2013-06-26T13:04:05Z
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
Comment #1 by hsteoh — 2013-06-29T13:36:01Z
git bisect indicates that this problem was introduced by commit 4eece51e6368f58b67d3ac3d4f55826dd334a4e4 (apparently a fix for 5886)
Comment #2 by k.hara.pg — 2013-07-08T22:31:18Z
Comment #3 by github-bugzilla — 2013-07-09T00:40:49Z
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
Comment #4 by k.hara.pg — 2013-08-06T22:10:56Z
*** Issue 10737 has been marked as a duplicate of this issue. ***