Bug 379 – wrong thisptr type in typedef'ed struct

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-09-27T12:12:00Z
Last change time
2014-02-15T13:22:06Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
h3r3tic

Comments

Comment #0 by h3r3tic — 2006-09-27T12:12:52Z
struct Foo { void foo() { } } typedef Foo Bar; void main() { Bar a; a.foo(); } > this for foo needs to be type Foo not type Bar
Comment #1 by thomas-dloop — 2006-09-29T02:05:36Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-09-27: > http://d.puremagic.com/issues/show_bug.cgi?id=379 > struct Foo { > void foo() { > } > } > > typedef Foo Bar; > > > void main() { > Bar a; > a.foo(); > } > >> this for foo needs to be type Foo not type Bar test case: http://dstress.kuehne.cn/run/t/typedef_07_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFHM1ELK5blCcjpWoRAriCAJ4ugxK4pe+lJvgUQfsn5aZMBRb0jQCgrYm+ rqNcMUpIDQS07De5cEywqJs= =oOxE -----END PGP SIGNATURE-----
Comment #2 by thomas-dloop — 2006-11-23T05:00:59Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tomas Lindquist Olsen schrieb am 2006-10-26: > [email protected] wrote: >> http://d.puremagic.com/issues/show_bug.cgi?id=379 > Same for classes: <snip> test case: http://dstress.kuehne.cn/run/t/typedef_19_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFZXleLK5blCcjpWoRAsgxAJoDfVRD0pjv3w8CmKJXW50BAax4oQCdFUlh sJEw6dSfrRo7sIwzjcaZlZg= =6Hgx -----END PGP SIGNATURE-----
Comment #3 by bugzilla — 2006-11-25T03:51:21Z
Fixed DMD 0.175