http://d.puremagic.com/issues/show_bug.cgi?id=8945
Summary: Can't call static struct initializer or constructor without qualifier for templated inner struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: verylonglogin....@gmail.com --- Comment #0 from Denis Shelomovskij <verylonglogin....@gmail.com> 2012-11-02 21:01:28 MSK --- --- struct S // or `class`, or `union` { struct S0(T) { int i; } struct S1(T) { this(int){} } } void main() { auto cs01 = const S.S0!int(); // ok auto cs02 = const S.S0!int(1); // ok auto cs1 = const S.S1!int(1); // ok auto s01 = S.S0!int(); // Error: struct S0 does not overload () auto s02 = S.S0!int(1); // Error: struct S0 does not overload () auto s1 = S.S1!int(1); // Error: struct S1 does not overload () } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------