This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/11907] New: cp_demangled_name_to_comp reports syntax error if template_arg is a function decl
- From: "robert dot pintarelli at tngtech dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 11 Aug 2010 21:29:47 -0000
- Subject: [Bug gdb/11907] New: cp_demangled_name_to_comp reports syntax error if template_arg is a function decl
- Reply-to: sourceware-bugzilla at sourceware dot org
if cp_demangled_name_to_comp with demangled_name
"std::deque<boost::function<void()>, std::allocator<boost::function<void()> > >"
then a 'syntax error' error message is generated.
how to reproduce:
install python pretty-printers as described here:
http://sourceware.org/gdb/wiki/STLSupport
test-program:
#include <deque>
#include <boost/function.hpp>
int main() {
std::deque<boost::function<void()> > dek;
return dek.size();
}
debug program and try to 'print dek'
suggested solution:
adding "function" to the alternatives of the
template_arg production in cp-name-parser.y should fix this problem
--
Summary: cp_demangled_name_to_comp reports syntax error if
template_arg is a function decl
Product: gdb
Version: 7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: robert dot pintarelli at tngtech dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11907
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.