https://d.puremagic.com/issues/show_bug.cgi?id=12543

           Summary: Class.sizeof requires the Class' definition
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2014-04-08 00:56:16 PDT ---
//----
class SomeClass;
pragma(msg, SomeClass.sizeof);
//----
Error: class main.SomeClass is forward referenced when looking for 'sizeof'
//----

AFAIK, you don't need to know about SomeClass, to know it's size is that of
object, eg, size_t.

See also:
https://d.puremagic.com/issues/show_bug.cgi?id=12540
https://github.com/D-Programming-Language/phobos/pull/2074

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

Reply via email to