← Back to index
|
Original Bugzilla link
Bug 12574 – [ICE](statement.c, line 713) with reduce with wrong tuple arity
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-13T19:22:00Z
Last change time
2014-04-15T18:17:40Z
Keywords
ice, pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2014-04-13T19:22:17Z
Issue found by monarchdodra, spinoff of Issue 12569 : void main() { import std.algorithm: min, max, reduce; import std.typecons: tuple; dchar c = 'a'; reduce!(min, max)(tuple(c, c, c), "hello"); } DMD 2.066alpha gives: Assertion failure: 'global.gaggedErrors || global.errors' on line 713 in file 'statement.c'
Comment #1
by monarchdodra — 2014-04-13T19:34:32Z
See also
https://issues.dlang.org/show_bug.cgi?id=12501#c4
for a reduced test case.
Comment #2
by k.hara.pg — 2014-04-15T07:21:00Z
This is a regression in 2.066 git-head, which has the same root with issue 12501.
https://github.com/D-Programming-Language/dmd/pull/3454
Comment #3
by github-bugzilla — 2014-04-15T18:17:38Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5327b688775d7c40aa5283730e465760d71d7c03
fix Issue 12574 - [ICE](statement.c, line 713) with reduce with wrong tuple arity Make `TemplateInstance::semanticTiargs` reentrant against semantic errors.
https://github.com/D-Programming-Language/dmd/commit/bbd174c5cf9352111d9a8730b785e452e4ecc6cf
Merge pull request #3454 from 9rnsr/fix12501 [REG2.066a] Issue 12574 - [ICE](statement.c, line 713) with reduce with wrong tuple arity