Thread overview
[Issue 9782] New: implementing RTInfo!T causes errors for deprecated types
Mar 22, 2013
Rainer Schuetze
Mar 22, 2013
Rainer Schuetze
Jun 22, 2013
Rainer Schuetze
March 22, 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@puremagic.com
        ReportedBy: r.sagitario@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagitario@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: -------
March 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9782


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2013-03-22 02:36:04 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1785

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9782



--- Comment #2 from github-bugzilla@puremagic.com 2013-03-22 14:00:36 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5178fe76b83593ab12a8f40c79fdf2e400bb0fd9 Merge pull request #1785 from rainers/rtinfo_on_deprecated

fix issue 9782: do not generate RTInfo for deprecated types and _error_ types

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 25, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9782



--- Comment #3 from github-bugzilla@puremagic.com 2013-03-24 20:57:15 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5178fe76b83593ab12a8f40c79fdf2e400bb0fd9 Merge pull request #1785 from rainers/rtinfo_on_deprecated

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9782


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> 2013-06-22 01:07:36 PDT ---
Seems this was not automatically closed afer the commit. Fixed in 2.063.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------