March 11, 2010 [Issue 3932] New: Title: A forward declaration error with a struct.init | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3932 Summary: Title: A forward declaration error with a struct.init Product: D Version: 2.041 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-03-11 06:31:58 PST --- This D2 code: template Foo(alias something) { enum bool Foo = true; } struct S { int x; } static assert(Foo!(S())); // OK static assert(Foo!(S.init)); // Error void main() {} Raises the following errors: bug.d(4): Error: declaration _D3bug1S6__initZ forward declaration bug.d(8): Error: template instance bug.Foo!(_D3bug1S6__initZ) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 20, 2012 [Issue 3932] Title: A forward declaration error with a struct.init | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3932 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrej.mitrovich@gmail.com Resolution| |FIXED --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-20 08:45:52 PDT --- Seems to work in 2.061. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation