[Issue 16443] New: std.getopt: segmentation fault with empty string option

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Aug 28 09:22:00 PDT 2016


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

          Issue ID: 16443
           Summary: std.getopt: segmentation fault with empty string
                    option
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: deschenes.j.m at gmail.com

When using the following:
-------------------------

import std.getopt;

void main(string[] args)
{
    bool error_here;

    auto information = getopt(
        args,
        "", &error_here,
        );
}


-----------------------

Will result in a segmentation fault during execution.

--


More information about the Digitalmars-d-bugs mailing list