[Bug 165] New: gdc segfault on scope(failure)

via D.gnu d.gnu at puremagic.com
Fri Nov 7 01:07:28 PST 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 at gdcproject.org
          Reporter: ketmar at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20141107/ecd5ab10/attachment.html>


More information about the D.gnu mailing list