This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/375: debug problems when there are multiple expansions of same template


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]