www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18085] New: Segmentation fault: Error: variable __gate

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

          Issue ID: 18085
           Summary: Segmentation fault: Error: variable __gate forward
                    referenced
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: luis luismarques.eu

Created attachment 1668
  --> https://issues.dlang.org/attachment.cgi?id=1668&action=edit
reduced test case

I submit in attachment a reduced test case that crashes DMD and gives an
internal error in LDC2:

$ dmd -unittest a.d b.d
Error: variable __gate forward referenced
Segmentation fault: 11

$ ldc2 -unittest a.d b.d
openmethods.d(19): Error: Internal Compiler Error: function not fully analyzed;
previous unreported errors compiling openmethods.Method!("bug", "deallocator",
A, B).Method._staticCtor3625?

--
Dec 15 2017