[Issue 3325] New: ICE(func.c) function literal with post-contract
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 17 07:14:20 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3325
Summary: ICE(func.c) function literal with post-contract
Product: D
Version: 2.032
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hanazuki at gmail.com
--- Comment #0 from Kasumi Hanazuki <k.hanazuki at gmail.com> 2009-09-17 07:14:19 PDT ---
Windows DMD 2.032
Function/delegate literal with post-contract causes the error:
Assertion failure: 'type->nextOf()' on line 927 in file 'func.c'
It compiles and seems working correctly when there is only pre-condition.
----
void main() {
function() body { }; // fine
function() in { } body { }; // fine
function() out { } body { }; // error
function() in { } out { } body { }; // error
delegate() body { }; // fine
delegate() in { } body { }; // fine
delegate() out { } body { }; // error
delegate() in { } out { } body { }; // error
}
--
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