[Issue 4129] New: ICE(glue.c, !vthis->csym): indexing delegate literal in tuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 26 02:56:09 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4129
Summary: ICE(glue.c, !vthis->csym): indexing delegate literal
in tuple
Product: D
Version: 1.020
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-04-26 02:56:03 PDT ---
Applies at least as far back as DMD1.020; also applies to D2. Discovered while
reducing bug 1350. Swapping the order of the two asserts allows it to compile.
==========
void mountainGoat(Callbacks ...)() {
alias Callbacks[0] Cb;
assert(Callbacks[0].ptr);
assert(Cb.ptr);
}
void gazelle() {
mountainGoat!( (int i) { int x = i; } )();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list