This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/45717] New: regression in debug info on simple C++ code
- From: "charlet at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2010 12:48:19 -0000
- Subject: [Bug debug/45717] New: regression in debug info on simple C++ code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Given the following simple code snippet, tested on x86_64-pc-linux-gnu,
i686-pc-linux-gnu, and i686-pc-mingw32:
<<
struct Elem {
int data;
struct Elem* next;
};
int main () {
struct Elem* list;
return 0;
}
>>
Compile with:
g++ main.cc -o main
run under gdb:
gdb main
ptype Elem
yields:
type = struct Elem {
int data;
void *next;
}
instead of (with e.g. g++ 4.4.3):
type = struct Elem {
int data;
Elem *next;
}
--
Summary: regression in debug info on simple C++ code
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Keywords: wrong-debug
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: charlet at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45717