public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2318: unable to call templated functions in gdb 6.6
@ 2007-09-16 10:18 sean finney
0 siblings, 0 replies; 2+ messages in thread
From: sean finney @ 2007-09-16 10:18 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR c++/2318; it has been noted by GNATS.
From: sean finney <seanius@seanius.net>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: c++/2318: unable to call templated functions in gdb 6.6
Date: Sun, 16 Sep 2007 12:09:59 +0200
--nextPart1538505.nmbotzYRvl
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Friday 14 September 2007 04:38:01 pm gdb-gnats@sources.redhat.com wrote:
> Thank you very much for your problem report.
> It has the internal identification `c++/2318'.
> The individual assigned to look at your
> report is: unassigned.
>
> >Category: c++
> >Responsible: unassigned
> >Synopsis: unable to call templated functions in gdb 6.6
> >Arrival-Date: Fri Sep 14 14:38:01 UTC 2007
just fyi, this also happens in the latest CVS checkout,
version 6.7.50-20070916-cvs
sean
--nextPart1538505.nmbotzYRvl
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBG7QD6ynjLPm522B0RAqiiAKCKJlpb1uKqUlVtWj8dp9rMNn03JwCgiFlV
T0qn+aMFBK0jZOzqkW7SyzE=
=0VdG
-----END PGP SIGNATURE-----
--nextPart1538505.nmbotzYRvl--
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/2318: unable to call templated functions in gdb 6.6
@ 2007-09-14 14:38 seanius
0 siblings, 0 replies; 2+ messages in thread
From: seanius @ 2007-09-14 14:38 UTC (permalink / raw)
To: gdb-gnats
>Number: 2318
>Category: c++
>Synopsis: unable to call templated functions in gdb 6.6
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 14 14:38:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: seanius@seanius.net
>Release: 6.6
>Organization:
>Environment:
>Description:
due to the lack of the ability to call the operator<< on a class (i believe there are seperate pr's for this?), i've written and forcefully instantiated a small templated "dump" function:
using namespace std;
template<typename T> void dump(T x){ cout << x << endl; }
template void dump<int>(int x);
// more of the same for classes
due to *another* (reported) bug, the return type shows up in the name, so i try and call the function with:
(gdb) call 'void dump<int>(int)'(123)
../../../gdb-6.6/gdb/valops.c:2112: internal-error: find_oload_champ_namespace_loop: Assertion `new_oload_champ != -1' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
however, in gdb 6.3 it behaves as expected (modulo the wierd calling convention):
(gdb) call 'void dump<int>(int)'(123)
123
so i suppose this is a regression.
>How-To-Repeat:
compile a small program with those declarations, try to call dump.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-16 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-16 10:18 c++/2318: unable to call templated functions in gdb 6.6 sean finney
-- strict thread matches above, loose matches on Subject: below --
2007-09-14 14:38 seanius
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).