www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - BUG: static members of local structs

reply h3r3tic <foo bar.baz> writes:
(dmd.109 winxpsp2en)

(LINKER) Error 1: Previous Definition Different : _D3tmp3foo3Bar3bazi
void foo(float a) { struct Bar { static int baz; } } void foo(int a) { struct Bar { static int baz; } } void main() {}
Dec 26 2004
parent "Thomas Kuehne" <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Added to DStress as
http://dstress.kuehne.cn/run/static_20.d
http://dstress.kuehne.cn/run/static_21.d
http://dstress.kuehne.cn/run/static_22.d
http://dstress.kuehne.cn/run/static_23.d

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

iD8DBQFBzyyJ3w+/yD4P9tIRAm8LAJ9GPneqhSlUwK83utczTNJTz6d0YACfaABc
1g142xYIKVW6TgtNIUG8mk4=
=Kjpl
-----END PGP SIGNATURE-----
Dec 26 2004