www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19860] New: Memory corruption in nested templates

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

          Issue ID: 19860
           Summary: Memory corruption in nested templates
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: faissaloo gmail.com

https://github.com/faissaloo/uranium
I was working on the above project and came across an issue where nesting my
U!() template within the render() causes what seems to be a dangling pointer.
Uncommenting the last test in component_tests.d demonstrates this issue.

--
May 11 2019