www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10596] New: A method with out contract and auto return type causes segfault

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10596

           Summary: A method with out contract and auto return type causes
                    segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ttanjo gmail.com


--- Comment #0 from Tomoya Tanjo <ttanjo gmail.com> 2013-07-10 08:49:13 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 10 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10596


kekeniro2 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kekeniro2 yahoo.co.jp


--- Comment #1 from kekeniro2 yahoo.co.jp 2013-07-14 04:00:01 PDT ---
*** Issue 8860 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 14 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10596


Henning Pohl <henning still-hidden.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |henning still-hidden.de


--- Comment #2 from Henning Pohl <henning still-hidden.de> 2013-07-26 04:19:03
PDT ---
https://github.com/D-Programming-Language/dmd/pull/2383

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10596



--- Comment #3 from github-bugzilla puremagic.com 2013-07-26 15:58:51 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 26 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10596


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 26 2013