Summary: | strange debuging messages with g++ (gcc 4.1.2) & gdb 6.7.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | pavel sanda <ps> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | SebastianLuther |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | file.c |
Description
pavel sanda
2008-09-30 14:18:14 UTC
Created attachment 166829 [details]
file.c
perhaps there is nothing wrong with the gcc, only gdb does not recognize it has been compiled via g++. gcc compilation is ok, and printf of alpha works also ok. The reason for this is that your program contains the variable "alpha" twice. If you are not lucky enough gdb prints the wrong one with "print alpha". You can see them both with "info locals". Rename one of your alpha's and you get what you expect. aha, so this is not a bug; i will close it then. |