This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12506] New: physname linespec regression
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 23 Feb 2011 05:21:30 +0000
- Subject: [Bug c++/12506] New: physname linespec regression
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12506
Summary: physname linespec regression
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
CC: keiths@redhat.com
Target: x86_64-unknown-linux-gnu
the patch
42284fdf9d8cdb20c8e833bdbdb2b56977fea525
http://sourceware.org/ml/gdb-cvs/2010-03/msg00082.html
dwarf2_physname patchset:
[RFA] dwarf2_physname FINAL
http://sourceware.org/ml/gdb-patches/2010-03/msg00220.html
has a regression for:
(gdb) b test<my_types>::f1
Breakpoint 1 at 0x4008d5: file ms_types.C, line 9.
->
(gdb) b test<my_types>::f1
the class test<my_types> does not have any method named f1
when the testcase is built with recent GCCs:
PASS g++ (GCC) 4.4.6 20110124 (prerelease)
FAIL g++ (GCC) 4.5.3 20110124 (prerelease)
FAIL g++ (GCC) 4.6.0 20110212 (experimental)
FAIL gcc-c++-4.6.0-0.7.fc15.x86_64
FAIL gcc-c++-4.5.1-4.fc14.x86_64
FAIL gcc-c++-4.4.5-2.fc13.x86_64
Testcase provided by Henrik Nyberg (irc <henke>).
#include <iostream>
template<typename types>
class test
{
public:
void f1(typename types::arg_type f)
{
std::cout << "f1: " << f << std::endl;
}
void f2()
{
std::cout << "f2" << std::endl;
}
};
class my_types
{
public:
typedef int arg_type;
};
int main()
{
test<my_types> t;
t.f1(5);
t.f2();
return 0;
}
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.