[Issue 9782] New: implementing RTInfo!T causes errors for deprecated	types
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Mar 22 02:02:26 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9782
           Summary: implementing RTInfo!T causes errors for deprecated
                    types
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at gmx.de> 2013-03-22 02:02:24 PDT ---
If you modify object.di to implement RTInfo as
template RTInfo(T)
{
    enum RTInfo = T.sizeof;
}
and then compile
deprecated class C {}
you get the error/warning
object.di(661): Deprecation: class test.C is deprecated
even though C is never touched.
Similar things happen with types that caused errors in speculative compilation,
e.g. xtest46 from the test suite fails with
object.di(661): Error: variable object.RTInfo!(_error_).RTInfo had semantic
errors when compiling
-- 
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