Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
January 05, 2014 [Issue 11868] New: ICE(template.c) on passing `inout` `ref` `foreach` var as TemplateParameterList | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=11868 Summary: ICE(template.c) on passing `inout` `ref` `foreach` var as TemplateParameterList Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: verylonglogin.reg@gmail.com --- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2014-01-05 13:25:45 MSK --- This code should compile: --- void f(A...)(A) { } void g(inout(int)[] arr) { foreach(ref e; arr) f(e); } --- Assertion failure: '0' on line 1503 in file 'template.c' --- It worked with previous dmd. As a result dmd ICEs now on such previously working code: --- import std.algorithm; void f(inout(int)[] arr) { arr.all!(a => true)(); } --- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 06, 2014 [Issue 11868] ICE(template.c) on passing `inout const` argument as TemplateTupleParameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | https://d.puremagic.com/issues/show_bug.cgi?id=11868 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull Summary|ICE(template.c) on passing |ICE(template.c) on passing |`inout` `ref` `foreach` var |`inout const` argument as |as TemplateParameterList |TemplateTupleParameter --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-01-05 17:27:33 PST --- https://github.com/D-Programming-Language/dmd/pull/3064 This is git-head only regression. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 06, 2014 [Issue 11868] ICE(template.c) on passing `inout const` argument as TemplateTupleParameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | https://d.puremagic.com/issues/show_bug.cgi?id=11868 --- Comment #2 from github-bugzilla@puremagic.com 2014-01-06 01:57:56 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/311612ab8a4a54d8d7d54831a6e4ff70cdf3fe26 fix Issue 11868 - ICE(template.c) on passing `inout const` argument as TemplateTupleParameter https://github.com/D-Programming-Language/dmd/commit/044717ceb5620504464d51958830b83f6b3a16cc Merge pull request #3064 from 9rnsr/fix11868 [REG2.066a] Issue 11868 - ICE(template.c) on passing `inout const` argument as TemplateTupleParameter -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 06, 2014 [Issue 11868] ICE(template.c) on passing `inout const` argument as TemplateTupleParameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | https://d.puremagic.com/issues/show_bug.cgi?id=11868 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation