[Issue 932] static foreach in second template instantiation uses wrong tupleof

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 25 04:31:15 PDT 2009


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug at yahoo.com.au
         Resolution|                            |INVALID




--- Comment #2 from Don <clugdbug at yahoo.com.au>  2009-05-25 04:31:14 PDT ---
This is an invalid bug. It fails because:
        static assert(is( typeof(a)));
will always fail (a evaluates to 'int') inside a static foreach.

Correct code would be:

        static assert(is(typeof(C.tupleof)[i]  == a));

and that passes on DMD1.045 and 2.030.

-- 
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