November 07, 2014
http://bugzilla.gdcproject.org/show_bug.cgi?id=165

            Bug ID: 165
           Summary: gdc segfault on scope(failure)
           Product: GDC
           Version: 4.9.x
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw@gdcproject.org
          Reporter: ketmar@ketmar.no-ip.org

the following code causes gdc to segfault:

  void a () {
    scope(failure) import std.file : remove;
    ;
  }

observations:

only 'failure' faults; 'success' or 'exit' does not.

any ':'-import will do. create module 'b' with function 'f', and 'import b : f;' will segfault.

that lone semicolon matters. remove it and segfault will disappear.

'scope(failure) { import … }' segfaults too.

simple 'import std.file;' does not segfault.

actually, lone semicolon can be anything: variable declaration, function call, operator, etc.

-- 
You are receiving this mail because:
You are watching all bug changes.