http://d.puremagic.com/issues/show_bug.cgi?id=7169
Summary: [CTFE] Assertion failure with inner struct
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Hisayuki Mima <[email protected]> 2011-12-27 18:29:01 JST
---
struct Struct(T){
T t;
}
void func(T)(T t){
Struct!T s;
s.t = t;
}
static assert({
struct InnerStruct{
void func(){}
}
func(InnerStruct());
return true;
}());
void main(){}
This code doesn't work.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------