gdb/69: g++ function calls give wrong results with gcc 3.0

chastain@redhat.com chastain@redhat.com
Thu Jun 28 18:58:00 GMT 2001


>Number:         69
>Category:       gdb
>Synopsis:       g++ function calls give wrong results with gcc 3.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 28 18:58:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     chastain@redhat.com
>Release:        2001-06-24-cvs
>Organization:
>Environment:
native red hat linux 7
gcc gcc-3_0-branch cvs 2001-06-23
>Description:
test script gdb.c++/overload.exp prints wrong results for some tests.
The script thinks that these are XFAILs, but I think that when gdb prints incorrect results, that's a bug.

print foo_instance1.overload1arg((short)arg5)
$19 = 7
(gdb) XFAIL: gdb.c++/overload.exp: print call overloaded short arg (PRMS CLLbs16901)
print foo_instance1.overload1arg((unsigned short)arg6)
$20 = 7
(gdb) XFAIL: gdb.c++/overload.exp: print call overloaded func unsigned short  arg (PRMS CLLbs16901)
...
print foo_instance1.overload1arg((long)arg9)
$23 = 8
(gdb) XFAIL: gdb.c++/overload.exp: print call overloaded func long arg (PRMS CLLbs16901)
print foo_instance1.overload1arg((unsigned long)arg10)
$24 = 11
(gdb) XFAIL: gdb.c++/overload.exp: print call overloaded func unsigned long arg (PRMS CLLbs16901)
>How-To-Repeat:
build cvs gdb on native red hat linux 7
use gcc 3.0 to run the test suite
run test script gdb.c++/overload.exp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gdb-prs mailing list