D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8860 - DMD crashes in post-contract of auto function
Summary: DMD crashes in post-contract of auto function
Status: RESOLVED DUPLICATE of issue 10596
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: contracts, ice
Depends on:
Blocks:
 
Reported: 2012-10-20 21:28 UTC by kekeniro2
Modified: 2013-07-14 04:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kekeniro2 2012-10-20 21:28:19 UTC
Test case:
-----------------
class Any {
    auto foo()
    out  ( result ) { }
    body { return 0; }
}
-----------------

DMD crashes when compiling the above source.
DMD2.059 or older gives compile error against it. ( REJECT VALID? )

To reproduce:
 1. Class member
 2. Auto function
 3. Post-contract with parameter

Environment:
Windows 7 64-bit
DMD 2.060
Comment 1 kekeniro2 2013-03-06 03:58:11 UTC
It reproduces on WinXP 32bit.
Comment 2 kekeniro2 2013-07-14 04:00:01 UTC

*** This issue has been marked as a duplicate of issue 10596 ***