c++/1936: Wrong address of struct member

c_keil@yahoo.de c_keil@yahoo.de
Tue May 3 14:28:00 GMT 2005

>Number:         1936
>Category:       c++
>Synopsis:       Wrong address of struct member
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 03 14:28:03 UTC 2005
>Originator:     c_keil@yahoo.de
>Release:        gdb-6.3
SuSE Linux 9.0
output of uname -a:
Linux xxx 2.4.21-286-smp4G #1 SMP Sat Apr 2 09:08:57 UTC 2005 i686 i686 i386 GNU/Linux
Gdb seems to judge the size of the bool type different from gcc (which should presumably be the reference, as the program is running fine on its own).
Compile the program with -g (I was using g++-3.3.1 from SuSE Linux). Open program in debugger and set breakpoint after printf line. Run and compare the output with 
"p &t.d".

Content-Type: text/x-c++src; name="struct.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="struct.cpp"


More information about the Gdb-prs mailing list