← Back to index
|
Original Bugzilla link
Bug 14782 – Internal error: backend/cod1.c
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-07-07T17:21:00Z
Last change time
2016-01-03T14:01:53Z
Assigned to
nobody
Creator
yazan.dabain
Comments
Comment #0
by yazan.dabain — 2015-07-07T17:21:26Z
struct Foo { void* a; int b; } int fun() { return 0; } auto process(fun...)() { Foo[fun.length] a; return a; } void main() { Foo[1] output = process!fun(); } ------------------ Compiling the above using dmd 2.067.1 produces: `Internal error: backend/cod1.c 1713` Compiling using dmd 2.068.0-b1 produces: `Internal error: backend/cod1.c 1711` No flags are necessary to reproduce.
Comment #1
by yazan.dabain — 2015-07-08T07:55:58Z
Further reduction: struct Foo { void* a; int b; } Foo[1] fun() { Foo[1] a; return a; } void main() { auto result = fun(); }
Comment #2
by dlang-bugzilla — 2015-08-31T11:49:57Z
This is a regression. Introduced in
https://github.com/D-Programming-Language/dmd/pull/1630
Comment #3
by bugzilla — 2015-10-03T01:59:19Z
*** Issue 14987 has been marked as a duplicate of this issue. ***
Comment #4
by bugzilla — 2015-10-03T10:39:42Z
https://github.com/D-Programming-Language/dmd/pull/5154
Comment #5
by github-bugzilla — 2015-10-04T21:41:36Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/df6a9af2a85e7d67ae01b7d07ec86ba8819d183f
fix Issue 14782 - Internal error: backend/cod1.c
https://github.com/D-Programming-Language/dmd/commit/6d1f4276957952266440f78c83e574dfcd4d2bb1
Merge pull request #5154 from WalterBright/fix14782 fix Issue 14782 - Internal error: backend/cod1.c
Comment #6
by github-bugzilla — 2015-10-04T22:41:59Z
Commit pushed to dmd-1.x at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/0ff63cc33aebe82d3981aed87f08e0626b43918f
Merge pull request #5154 from WalterBright/fix14782 fix Issue 14782 - Internal error: backend/cod1.c
Comment #7
by github-bugzilla — 2016-01-03T14:01:53Z
Commits pushed to stable at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/df6a9af2a85e7d67ae01b7d07ec86ba8819d183f
fix Issue 14782 - Internal error: backend/cod1.c
https://github.com/D-Programming-Language/dmd/commit/6d1f4276957952266440f78c83e574dfcd4d2bb1
Merge pull request #5154 from WalterBright/fix14782