This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/14867] New: unsupported name lookup in template class
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 21 Nov 2012 21:35:19 +0000
- Subject: [Bug c++/14867] New: unsupported name lookup in template class
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14867
Bug #: 14867
Summary: unsupported name lookup in template class
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: tromey@redhat.com
Classification: Unclassified
Consider this test case:
template<typename T>
struct C
{
int x;
int m() {
return C::x;
}
};
C<int> c;
int main()
{
return c.m();
}
When stopped in 'm', this should work:
(gdb) p C::x
No symbol "C" in current context.
This is related to PR 14819.
--
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.