Bug 9782 – implementing RTInfo!T causes errors for deprecated types
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-22T02:02:00Z
Last change time
2013-06-22T01:07:36Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
r.sagitario
Comments
Comment #0 by r.sagitario — 2013-03-22T02:02:24Z
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