Thread overview
[Issue 8532] New: Pure Segfault
Aug 10, 2012
Daniel
Aug 12, 2012
Daniel Cousens
Oct 15, 2012
Kenji Hara
August 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8532

           Summary: Pure Segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: daniel350@bigpond.com


--- Comment #0 from Daniel <daniel350@bigpond.com> 2012-08-10 03:44:26 PDT ---
auto sum(Y, R ...)(R r, Y val) pure { return sum(r, val); } // segfault
//auto sum(Y, R ...)(R r, Y val) { return sum(r, val); } // no segfault, just
an error, as it should
void main() { sum(1, 2, 3); }

I first noticed this in 2.059, it remained to 2.060. http://dpaste.dzfl.pl/74702d88

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8532


Daniel Cousens <daniel350@bigpond.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8532



--- Comment #1 from github-bugzilla@puremagic.com 2012-10-15 08:06:14 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b19850a5ae2b9c72c9e0bc60e616cbc3af5c9b52 Fix issue 8532 Pure segfault

Segfault when using the return type to check for parameters escaping, when it isn't known yet.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8532


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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