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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Rainer Schuetze <[email protected]> 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: -------