digitalmars.D.bugs - [Issue 5754] New: 'glue.c' assertion failure with map(filter)
- d-bugmail puremagic.com (26/28) Mar 19 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (10/10) Mar 19 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (22/22) Mar 19 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (12/12) Sep 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (10/10) Apr 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (7/7) Apr 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (26/27) Dec 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5754
- d-bugmail puremagic.com (12/12) Dec 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5754
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:[[1]] -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------a = [1] map(lambda i: filter(lambda j: i, a), a)
Mar 19 2011
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: -------
Mar 19 2011
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: -------
Mar 19 2011
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: -------
Sep 07 2011
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: -------
Apr 20 2012
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: -------
Apr 20 2012
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 Win32Yes, 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: -------
Dec 14 2012
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: -------
Dec 14 2012