www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11366] New: typeid on field access gives CT error: need 'this'

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11366

           Summary: typeid on field access gives CT error:  need 'this'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thelastmammoth gmail.com


--- Comment #0 from thelastmammoth gmail.com 2013-10-27 02:04:50 PDT ---
class A{}
struct B{
  A a;
}

void main(){
  B b;
  b.a=new A;
  auto a=b.a;
  auto c=typeid(a);
  auto c2=typeid(b.a);//CT error: need 'this' for 'a' of type main.A
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 27 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11366


Kenji Hara <k.hara.pg gmail.com> changed:

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


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-11-02 05:53:58 PDT ---
*** This issue has been marked as a duplicate of issue 11010 ***

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