[Bug 144] New: Alias and function names fail to collide

Thomas Kuehne thomas-dloop at kuehne.cn
Fri May 19 09:45:01 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-05-18:
> When a function and an alias have the same name, DMD fails to produce an error
> unless the function is used directly. Taking the address off the name give no
> error.
>
> In the following test case the function (not the alias) is arbitrarily picked,
> however it is also the first definition and if this follows the pattern set in
> bug #52, reversing the order of the definitions will change this (not checked).

Added to DStress as
http://dstress.kuehne.cn/nocompile/a/alias_35_A.d
http://dstress.kuehne.cn/nocompile/a/alias_35_B.d
http://dstress.kuehne.cn/nocompile/a/alias_35_C.d
http://dstress.kuehne.cn/nocompile/a/alias_35_D.d
http://dstress.kuehne.cn/nocompile/a/alias_35_E.d
http://dstress.kuehne.cn/nocompile/a/alias_35_F.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEbcjD3w+/yD4P9tIRAn+JAJ4nA+Q/c4pQkhSoY5+masDI8sYHCwCgkROO
nJgMRGSwQ9zzFPElpY8GC+k=
=Zv6L
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list