Thread overview
[Issue 10922] Compiler segfaults when using __traits(parent, {})
Nov 12, 2013
yebblies
Nov 16, 2013
Kenji Hara
Nov 16, 2013
yebblies
Jan 05, 2014
Kenji Hara
November 12, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10922


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |yebblies@gmail.com


--- Comment #1 from yebblies <yebblies@gmail.com> 2013-11-13 01:52:10 EST ---
This one's interesting.

It gets to 9331 in expression.c and tries to run

error("forward reference to inferred return type of function call %s",
toChars());

because it doesn't know the return type.  But the call to 'self' has been optimzed to the entire function literal, including the call to 'self', infinitely.

The printing code needs to detect infinite recursive expressions and give up early.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 16, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10922


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-11-16 03:43:07 PST ---
https://github.com/D-Programming-Language/dmd/pull/2779

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 16, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10922



--- Comment #3 from github-bugzilla@puremagic.com 2013-11-16 04:46:22 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3371989030cedd3d58732fc423e68ce83a33e40c fix Issue 10922 - Compiler segfaults when using __traits(parent, {})

https://github.com/D-Programming-Language/dmd/commit/a86eb6c5702beff5fe786b0b2c6d5a954be85565 Merge pull request #2779 from 9rnsr/fix10922

Issue 10922 - Compiler segfaults when using __traits(parent, {})

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 16, 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10922


yebblies <yebblies@gmail.com> changed:

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 05, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=10922


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr@gmx.ch


--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2014-01-04 23:27:36 PST ---
*** Issue 11848 has been marked as a duplicate of this issue. ***

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