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. ***
Comment #2 by henning — 2013-07-26T04:19:03Z
Comment #3 by github-bugzilla — 2013-07-26T15:58:51Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/338998c8894451d83597ad4c274a17ac5b32e5e4 fix issue 10596 - A method with out contract and auto return type causes segfault https://github.com/D-Programming-Language/dmd/commit/87f79bb281b9cbf2b46028a3084f28f2daff164e Merge pull request #2383 from hpohl/10596 fix issue 10596 - A method with out contract and auto return type causes segfault