[omniORB] MSVC 6.0 bug with inheritance across namespaces (mo dules)

Dietmar May dcmay@object-workshops.com
Wed, 5 Aug 1998 20:22:06 -0400


------ =_NextPart_000_01BDC0BC.FBD9C6E0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Swayamjit Das,

>      The MSVC bug pointed out is for real. Pl. try the following code. It
> throws a stackoverflow exception.
>      I am using MSVC 5.0+sp3.

Thanks for your confirmation of the problem. Attached are the files which I 
used in isolating this problem - very similar to yours:

  

Simply use "cl test.cpp" on the command line. Test.ASM can be generated with 
the /Fa switch.

------ =_NextPart_000_01BDC0BC.FBD9C6E0
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64

LyoNCm1vZHVsZSBYDQp7DQogICAgaW50ZXJmYWNlIEENCiAgICB7DQogICAgICAgIHZvaWQgZnVu
YyAoKTsNCiAgICB9Ow0KfQ0KDQptb2R1bGUgWQ0Kew0KICAgIGludGVyZmFjZSBBDQogICAgew0K
ICAgICAgICB2b2lkIGZ1bmMgKCk7DQogICAgfTsNCn0NCiovDQoNCm5hbWVzcGFjZSBYDQp7DQog
ICAgY2xhc3MgQQ0KICAgIHsNCiAgICBwdWJsaWM6DQogICAgICAgIHZpcnR1YWwgdm9pZCBmdW5j
ICgpOw0KICAgIH07DQoNCiAgICBjbGFzcyBCIDogcHVibGljIEENCiAgICB7DQogICAgcHVibGlj
Og0KICAgICAgICB2aXJ0dWFsIHZvaWQgZnVuYyAoKTsNCiAgICB9Ow0KfQ0KDQpuYW1lc3BhY2Ug
WQ0Kew0KICAgIGNsYXNzIEEgOiBwdWJsaWMgWDo6QQ0KICAgIHsNCiAgICBwdWJsaWM6DQogICAg
ICAgIHZpcnR1YWwgdm9pZCBmdW5jICgpOw0KICAgIH07DQp9DQoNCnR5cGVkZWYgWDo6QSBYX0E7
DQoNCiNpbmNsdWRlIDxzdGRpby5oPg0KDQp2b2lkIGRvaXQgKCkgeyBwdXRzKCJEbyBpdCEiKTsg
fQ0KDQp2b2lkIFg6OkE6OmZ1bmMgKCkNCnsNCiAgICBkb2l0KCk7DQp9DQoNCnZvaWQgWDo6Qjo6
ZnVuYyAoKQ0Kew0KICAgIFhfQTo6ZnVuYygpOw0KICAgICgoWF9BKil0aGlzKS0+WF9BOjpmdW5j
KCk7DQp9DQoNCnZvaWQgWTo6QTo6ZnVuYyAoKQ0Kew0KICAgIFhfQTo6ZnVuYygpOyAgICAgICAg
ICAgICAgICAgICAgLy9mYWlscyAtIGNhbGxzIFk6OkE6OmZ1bmMoKSEhDQogICAgKChYX0EqKXRo
aXMpLT5YX0E6OmZ1bmMoKTsNCn0NCg0Kdm9pZCBtYWluICgpDQp7DQogICAgWTo6QSB5Ow0KICAg
IHkuZnVuYygpOw0KfQ0KGg==

------ =_NextPart_000_01BDC0BC.FBD9C6E0
Content-Type: application/octet-stream; name="test.asm"
Content-Transfer-Encoding: base64

VElUTEUgICB0ZXN0LmNwcA0KICAgICAgICAuMzg2UA0KaW5jbHVkZSBsaXN0aW5nLmluYw0KaWYg
QFZlcnNpb24gZ3QgNTEwDQoubW9kZWwgRkxBVA0KZWxzZQ0KX1RFWFQgICBTRUdNRU5UIFBBUkEg
VVNFMzIgUFVCTElDICdDT0RFJw0KX1RFWFQgICBFTkRTDQpfREFUQSAgIFNFR01FTlQgRFdPUkQg
VVNFMzIgUFVCTElDICdEQVRBJw0KX0RBVEEgICBFTkRTDQpDT05TVCAgIFNFR01FTlQgRFdPUkQg
VVNFMzIgUFVCTElDICdDT05TVCcNCkNPTlNUICAgRU5EUw0KX0JTUyAgICBTRUdNRU5UIERXT1JE
IFVTRTMyIFBVQkxJQyAnQlNTJw0KX0JTUyAgICBFTkRTDQpfVExTICAgIFNFR01FTlQgRFdPUkQg
VVNFMzIgUFVCTElDICdUTFMnDQpfVExTICAgIEVORFMNCkZMQVQgICAgR1JPVVAgX0RBVEEsIENP
TlNULCBfQlNTDQogICAgICAgIEFTU1VNRSAgQ1M6IEZMQVQsIERTOiBGT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KICAgICAgICBtb3YgICAgIGVicCwgZXNwDQogICAgICAgIHB1
c2ggICAgZWN4DQogICAgICAgIG1vdiAgICAgRFdPUkQgUFRSIF90aGlzJFtlYnBdLCBlY3gNCjsg
TGluZSA1NA0KICAgICAgICBtb3YgICAgIGVjeCwgRFdPUkQgUFRSIF90aGlzJFtlYnBdDQogICAg
ICAgIGNhbGwgICAgP2Z1bmNAQUBYQEBVQUVYWFogICAgICAgICAgICAgICAgICAgICAgIDsgWDo6
QTo6ZnVuYw0KOyBMaW5lIDU1DQogICAgICAgIG1vdiAgICAgZWN4LCBEV09SRCBQVFIgX3RoaXMk
W2VicF0NCiAgICAgICAgY2FsbCAgICA/ZnVuY0BBQFhAQFVBRVhYWiAgICAgICAgICAgICAgICAg
ICAgICAgOyBYOjpBOjpmdW5jDQo7IExpbmUgNTYNCiAgICAgICAgbW92ICAgICBlc3AsIGVicA0K
ICAgICAgICBwb3AgICAgIGVicA0KICAgICAgICByZXQgICAgIDANCj9mdW5jQEJAWEBAVUFFWFha
IEVORFAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOyBYOjpCOjpmdW5jDQpfVEVY
VCAgIEVORFMNClBVQkxJQyAgP2Z1bmNAQUBZQEBVQUVYWFogICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgOyBZOjpBOjpmdW5jDQpfVEVYVCAgIFNFR01FTlQNCl90aGlzJCA9IC00DQo/ZnVu
Y0BBQFlAQFVBRVhYWiBQUk9DIE5FQVIgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDsgWTo6
QTo6ZnVuYw0KOyBMaW5lIDU5DQogICAgICAgIHB1c2ggICAgZWJwDQogICAgICAgIG1vdiAgICAg
ZWJwLCBlc3ANCiAgICAgICAgcHVzaCAgICBlY3gNCiAgICAgICAgbW92ICAgICBEV09SRCBQVFIg
X3RoaXMkW2VicF0sIGVjeA0KOyBMaW5lIDYwDQogICAgICAgIG1vdiAgICAgZWN4LCBEV09SRCBQ
VFIgX3RoaXMkW2VicF0NCiAgICAgICAgY2FsbCAgICA/ZnVuY0BBQFlAQFVBRVhYWiAgICAgICAg
ICAgICAgICAgICAgICAgOyBZOjpBOjpmdW5jDQo7IExpbmUgNjENCiAgICAgICAgbW92ICAgICBl
Y3gsIERXT1JEIFBUUiBfdGhpcyRbZWJwXQ0KICAgICAgICBjYWxsICAgID9mdW5jQEFAWEBAVUFF
WFhaICAgICAgICAgICAgICAgICAgICAgICA7IFg6OkE6OmZ1bmMNCjsgTGluZSA2Mg0KICAgICAg
ICBtb3YgICAgIGVzcCwgZWJwDQogICAgICAgIHBvcCAgICAgZWJwDQogICAgICAgIHJldCAgICAg
MA0KP2Z1bmNAQUBZQEBVQUVYWFogRU5EUCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICA7IFk6OkE6OmZ1bmMNCl9URVhUICAgRU5EUw0KRU5EDQoa

------ =_NextPart_000_01BDC0BC.FBD9C6E0--