http://d.puremagic.com/issues/show_bug.cgi?id=11379
Summary: Cannot combine calling convention with an existing
alias
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-10-29
11:14:59 PDT ---
I think this may be a dupe but I can't find the report:
-----
void main()
{
alias Foo = int function(int);
// workaround
mixin("alias extern(C) " ~ Foo.stringof ~ " C_Foo;");
// ok
static assert(!is(C_Foo == Foo));
// non-mixin version
alias extern(C) Foo C_Foo2;
// fails
static assert(!is(Foo == C_Foo2));
}
-----
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------