Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
March 19, 2011 [Issue 5754] New: 'glue.c' assertion failure with map(filter) | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5754 Summary: 'glue.c' assertion failure with map(filter) Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-03-19 07:22:11 PDT --- import std.algorithm; void main() { int[] a = [1]; map!((int i){ return filter!((int j){ return i; })(a); })(a); } With DMD 2.052 gives: Assertion failure: '!vthis->csym' on line 703 in file 'glue.c' Equivalent Python 2.6 code: >>> a = [1] >>> map(lambda i: filter(lambda j: i, a), a) [[1]] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 19, 2011 [Issue 5754] 'glue.c' assertion failure with map(filter) | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm@gmail.com --- Comment #1 from kennytm@gmail.com 2011-03-19 13:23:04 PDT --- Any chance it is the same as issue 4129? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 19, 2011 [Issue 5754] 'glue.c' assertion failure with map(filter) | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 kennytm@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All --- Comment #2 from kennytm@gmail.com 2011-03-19 13:58:32 PDT --- Reduced test case (I think): ---------------------------------- void x(alias pred)() { pred(); } void main() { x!((){ int i; // declare in outer scope x!((){ cast(void) i; // access in inner scope }); }); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 07, 2011 [Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE('glue.c'): using nested |ICE(glue.c): using nested |delegate literal as |delegate literal as |template alias parameter |template alias parameter --- Comment #3 from Don <clugdbug@yahoo.com.au> 2011-09-07 15:24:09 PDT --- See also bug 2962. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 20, 2012 [Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #4 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 10:15:31 PDT --- Compiles and runs with 2.059 Win32 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 20, 2012 [Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 --- Comment #5 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 10:17:15 PDT --- I don't have the D1 compiler installed but it would be worth trying if issue 2962 is resolved as well. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 15, 2012 [Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |regression --- Comment #6 from bearophile_hugs@eml.cc 2012-12-14 16:23:59 PST --- (In reply to comment #4) > Compiles and runs with 2.059 Win32 Yes, both cases now compile. But I have found a way to trigger the same error. First module, named "module1.d": import std.stdio; import module2; void main() {} Second module, named "module2.d": import std.algorithm: reduce; struct Foo { string bar() { auto spam = (string s, int) => ""; return reduce!spam("", [1]); } } It generates, dmd 2.061alpha: Assertion failure: '!vthis->csym' on line 787 in file 'glue.c' Since you say this used to work before, it's now a regression. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 15, 2012 [Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5754 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from bearophile_hugs@eml.cc 2012-12-14 16:26:50 PST --- Sorry, I guess it's a different bug, so I close this down and open another one. So ignore comment 6 please. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation