http://d.puremagic.com/issues/show_bug.cgi?id=9525
Summary: [CTFE] Cannot convert &S to const(S*) at compile time
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: CTFE, rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-02-17
13:02:02 MSK ---
This code used to work in 2.061:
---
void f(T)(in T*) { }
void main()
{
void test(alias a)()
{
static struct S { }
S s;
a(&s); // Error: Cannot convert &S to const(S*) at compile time
}
static assert((test!f(), true));
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------