digitalmars.D.bugs - duplicate union initialization
- Thomas Kuehne (60/60) Feb 15 2006 -----BEGIN PGP SIGNED MESSAGE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The code above behaves as expected, but if the position of x and the anonymous struct are exchanged: a.d(1): class a.C 2duplicate union initialization for x * I'd expect line 10 and 7 to be mentionted in the error message, not line 1. * The "2" in "2duplicate" seems to be a remainder of some debug logging. * Is it a bug, or an omission from the docs? Maybe the test case below is more suitable for discussion: Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD86Lq3w+/yD4P9tIRAtseAJ4iHZQ3yzmxBXvGziGdUxFjDSaGkQCgxZW4 PeLeg6Vh4pCVK3gYi9MXhVs= =9WVu -----END PGP SIGNATURE-----
Feb 15 2006