www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12487] New: DMD correctly reports excessive CTFE recursion, but not template recursion

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

           Summary: DMD correctly reports excessive CTFE recursion, but
                    not template recursion
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: lultimouomo gmail.com



PDT ---
Created an attachment (id=1340)
Test case for crashing the compiler

Compiling the attached test case reports:

recursion.d(6): Error: function recursion.recFunction CTFE recursion limit
exceeded
recursion.d(7):        called from here: recFunction(i)
recursion.d(6):        1000 recursive calls to function recFunction
recursion.d(14):        called from here: recFunction(0)

if dmd is run with -version=RecFunction, which makes very easy to spot the bug,
but just prints
Killed
after running out of memory if run with -version=RecTemplate.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 28 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12487


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com



14:32:53 EEST ---
Duplicate of issue 12485?

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