digitalmars.D.bugs - [Issue 4784] New: [ICE] with count()
- d-bugmail puremagic.com (27/27) Sep 01 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4784
- d-bugmail puremagic.com (28/28) Sep 23 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4784
- d-bugmail puremagic.com (11/11) Nov 22 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4784
http://d.puremagic.com/issues/show_bug.cgi?id=4784
Summary: [ICE] with count()
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: bearophile_hugs eml.cc
import std.algorithm: count;
import std.range: iota;
void main() {
int[] foo(R)(R m) {
count!((a){ return true; })(m);
return [];
}
foo(foo(iota(1)));
}
DMD 2.048 returns:
Internal error: toir.c 190
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 01 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4784
osa8aso gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |osa8aso gmail.com
I got the same ICE (dmd 2.048 on linux) and was able to reduce the problem to a
small test case which does not involve any libraries like std.algorithm:
struct A( alias P ) {
static void a() {
void aa() { P(); }
}
}
template B( alias P ) {
void b() { A!P a; }
}
struct C( alias P ) {
void c() { B!P.b(); }
}
void main() {
void bar() {}
C!bar c;
}
Compiling this produces the same error:
Internal error: toir.c 190
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 23 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4784
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
*** This issue has been marked as a duplicate of issue 4504 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2010









d-bugmail puremagic.com 