[Issue 805] regression: forward reference when using templated classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 14 08:27:31 PDT 2009


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


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

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


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2009-09-14 08:27:30 PDT ---
I don't think is a regression. It ICEd on DMD 0.175 (25 Nov 2006):

Assertion failure: '!scope' on line 195 in file 'toobj.c'

The current behaviour was present in DMD1.000 (2 Jan 2007). So I think it
changed from ice-on-valid-code into rejects-valid.
Original test case:

template FFF()
{
 class A : B { }
 class B { }
}

void main()
{
 mixin FFF;
}

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