[Issue 2458] Can't deduce sizeof inner struct inside a template mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 23 11:13:20 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=2458


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-23 11:13:18 PST ---
(In reply to comment #1)
> Reduced test case a bit:
> 
> mixin template A() {
>     void foo() {}
> }
> 
> void bar() {
>     static struct C {
>         mixin A!();
>     };
> }

That works in 2.061, however OP code still doesn't work. Also it should
probably use 'typeof(this).sizeof', not '(*this).sizeof' (which gives a
separate error).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list