digitalmars.D.bugs - [Issue 11366] New: typeid on field access gives CT error: need 'this'
- d-bugmail puremagic.com (27/27) Oct 27 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11366
- d-bugmail puremagic.com (11/11) Nov 02 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11366
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
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
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
*** 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








d-bugmail puremagic.com