This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
c++/1344: Static variable defined in another method is diaplyed instead of variable in current method.
- From: duma at gorodok dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 20 Aug 2003 05:14:46 -0000
- Subject: c++/1344: Static variable defined in another method is diaplyed instead of variable in current method.
- Reply-to: duma at gorodok dot net
>Number: 1344
>Category: c++
>Synopsis: Static variable defined in another method is diaplyed instead of variable in current method.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 20 05:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: duma@gorodok.net
>Release: unknown-1.0
>Organization:
>Environment:
Os:
Linux itest8 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 unknown unknown GNU/Linux
gdb:
GNU gdb 5.3-22mdk (Mandrake Linux)
i586-mandrake-linux-gnu
also:
gdb 2003-08-18-cvs
i686-pc-linux-gnu
>Description:
Static variable defined in another method is diaplyed instead of variable in current method.
Names of variables identical.
>How-To-Repeat:
Compile attached file and follow instructions in comments.
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="Test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Test.cpp"
dGVtcGxhdGUgPHVuc2lnbmVkIFc+CnN0cnVjdCBBCnsKCWxvbmcgbG9uZyBhOwoJc2lnbmVkIGI7
Cglib29sIGM7Cn07CnRlbXBsYXRlPHVuc2lnbmVkIFY+CnN0cnVjdCBCCnsKCWludCBmOwpwdWJs
aWM6CglCKCl7fQoJdGVtcGxhdGUgPHVuc2lnbmVkIFc+CglvcGVyYXRvciBBPFc+KCkgY29uc3QK
CXsKCQlzdGF0aWMgQjxWPiBnOwoJCQoJCWcuZiA9IDA7CgkJCgkJLy9wcmludCAmYSBpbiBnZGIg
cHJvbXB0IGRpc3BsYXlzIGFkZHJlc3Mgb2YgbWVtb3J5IGNlbGwgb24gc3RhY2sgd2hlcmUgYWRk
cmVzcyBvZiBhIGlzIHN0b3JlZAoJCS8vSXQgc2VlbXMgdGhhdCByZW1vdmluZyBzdGF0aWMgdmFy
aWFibGUgZyBmaXhlcyBwcm9ibGVtLgoJCUE8Vz4gYTsKCQlhLmEgPSBnLmY7CgkJYS5iID0gMTsK
CQlhLmMgPSB0cnVlOwoJCXJldHVybiBhOwoJfQoJdm9pZCBzKCkKCXsKCQlzdGF0aWMgQjxWPiBn
OwoKCQlnLmYgPSA2OwoJfQp9OwppbnQgbWFpbigpCnsKCUI8MT4gYjsKCUE8Mj4gYTsKCWIucygp
OwoJLy9zdGVwIGluIGFuZCBleGFtaW5lIHZhcmlhYmxlIGcuCgkvL2FjdHVhbGx5IGcgaW4gcygp
IGlzIGRpc3BsYXllZAoJYSA9IChBPDI+KWI7CgliLnMoKTsKCWEgPSAoQTwyPiliOwoJcmV0dXJu
IDA7Cn0K