This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: c++/375: debug problems when there are multiple expansions of same template
- From: polzin_spamprotect_ at gmx dot de
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 23 Nov 2004 19:48:01 -0000
- Subject: Re: c++/375: debug problems when there are multiple expansions of same template
- Reply-to: polzin_spamprotect_ at gmx dot de
The following reply was made to PR c++/375; it has been noted by GNATS.
From: polzin_spamprotect_@gmx.de
To: gdb-gnats@sources.redhat.com
Cc: polzin_spamprotect_@gmx.de
Subject: Re: c++/375: debug problems when there are multiple expansions of same template
Date: Tue, 23 Nov 2004 20:40:37 +0100 (MET)
This bug is still in gdb 6.3 (tested on a linux system).
Consequently, it affects member functions of template classes, too:
Setting a breakpoint on the line with /**/ sets a breakpoint only to
S< A >::test and not S< B >::test.
For a user that does not know this bug (it´s not listed in the 6.3
problems section) this is a quite surprising and annoying behaviour.
Regards,
Tobias
-------------------------------
#include <iostream>
class A {};
class B {};
template < class TYPE >
struct S
{
void test()
{
std::cout << "test\n"; /**/
}
};
int main()
{
S< A > sa;
S< B > sb;
sa.test();
sb.test();
}
----------------------------------------
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!