[Issue 13715] New: Access violation when Algebraic(null) is used as default parameter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 11 14:12:23 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13715
Issue ID: 13715
Summary: Access violation when Algebraic(null) is used as
default parameter
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: major
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: mrsmith33 at yandex.ru
import std.variant;
alias Algebraic!( typeof(null) ) Value;
void func(Value val = Value(null)) // Access violation
{
}
void main()
{
func();
}
--
More information about the Digitalmars-d-bugs
mailing list