Bug 16443 – std.getopt: segmentation fault with empty string option
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-08-28T16:22:00Z
Last change time
2016-10-01T11:47:04Z
Assigned to
nobody
Creator
deschenes.j.m
Comments
Comment #0 by deschenes.j.m — 2016-08-28T16:22:00Z
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.
Comment #1 by rburners — 2016-08-28T18:04:52Z
I'll work on that.
Comment #2 by deschenes.j.m — 2016-08-28T18:34:42Z