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