[Issue 16855] New: Global void[0] causes OPTLINK Error when passed as ref Parameter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 29 17:42:58 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16855
Issue ID: 16855
Summary: Global void[0] causes OPTLINK Error when passed as ref
Parameter
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
The following lusting generates a OPTLINK error.
void[0] Dummy1;
void f(ref void[0] x) { }
void main()
{
f(Dummy1);
static void[0] Dummy2;
f(Dummy2);
}
It does not occur when a local void[0] is passed to f or the parameter is not
ref.
For Dummy1 it does not matter wether it is static or not.
--
More information about the Digitalmars-d-bugs
mailing list