[Issue 2706] invalid template instantiation (and declaration?) is not rejected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 14 15:35:08 PDT 2011


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #3 from Don <clugdbug at yahoo.com.au> 2011-04-14 15:31:39 PDT ---
Updated test case for D2.052:
template newTB(string c, string d)
{
    enum newTB = mixin(c~"+"~d);
}

int a=1, b=2;

void main()
{
    auto c = newTB!("a", "b");
    a = 4;
    b = 6;
    c = newTB!("a", "b");
}

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