www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20356] New: exceeding template expansion limits

https://issues.dlang.org/show_bug.cgi?id=20356

          Issue ID: 20356
           Summary: exceeding template expansion limits
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: rschadek symmetryinvestments.com

When I compare a certain struct in one of my code bases I get a "recursive
expansion" error in dtemplate.d:7249

But this is false. I just hit the limit of 300 allowed nestings.
300 seems to be arbitrary, and all other limits I could find are set to 500.

I have a PR already in the works, that makes my code compile.

--
Nov 05 2019