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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 12 06:52:12 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=10922


yebblies <yebblies at gmail.com> changed:

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


--- Comment #1 from yebblies <yebblies at 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: -------


More information about the Digitalmars-d-bugs mailing list