Bug 10596 – A method with out contract and auto return type causes segfault
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-10T08:49:00Z
Last change time
2013-07-26T16:14:45Z
Keywords
contracts, ice, pull
Assigned to
nobody
Creator
ttanjo
Comments
Comment #0 by ttanjo — 2013-07-10T08:49:13Z
The following code causes segfault with exit code 139 with dmd v2.064-devel-e66cc8f on Linux 64bit.
--- foo.d
class Foo
{
auto bar()
out(result) {
} body {
return 0;
}
}
---
$ dmd -run foo.d
zsh: segmentation fault (core dumped) dmd -run foo.d
Comment #1 by kekeniro2 — 2013-07-14T04:00:01Z
*** Issue 8860 has been marked as a duplicate of this issue. ***