Bug 11010 – Regression (2.063.2) typeid doesn't work on a member of an instance.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-11T03:49:00Z
Last change time
2013-11-02T05:53:58Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
elvis.x.zhou

Comments

Comment #0 by elvis.x.zhou — 2013-09-11T03:49:44Z
import std.stdio; struct A { A* p; } int main() { A a; writeln(typeid(a.p)); // Error: need 'this' for 'p' of type 'A*' return 0; }
Comment #1 by andrej.mitrovich — 2013-09-17T12:59:48Z
This is a 2.063.2 regression, unfortunately. It works in 2.062.
Comment #2 by k.hara.pg — 2013-09-24T22:23:00Z
Comment #3 by andrej.mitrovich — 2013-09-26T07:12:24Z
*** Issue 9041 has been marked as a duplicate of this issue. ***
Comment #4 by andrej.mitrovich — 2013-09-26T07:14:47Z
*** Issue 8439 has been marked as a duplicate of this issue. ***
Comment #5 by andrej.mitrovich — 2013-09-26T07:19:44Z
*** Issue 3643 has been marked as a duplicate of this issue. ***
Comment #6 by github-bugzilla — 2013-09-26T16:53:10Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4d8c25e2aaaa492f6793dcdd7478857ee0a3e3a4 fix Issue 11010 - typeid doesn't work on a member of an instance To distinguish the typeid context, add `bool intypeid` parameter on Type::resolve(). https://github.com/D-Programming-Language/dmd/commit/d9460bfc69ae71acef4418e3b1cdb8de8241bd1f Merge pull request #2587 from 9rnsr/fix11010 [REG2.063] Issue 11010 - typeid doesn't work on a member of an instance
Comment #7 by k.hara.pg — 2013-11-02T05:53:58Z
*** Issue 11366 has been marked as a duplicate of this issue. ***