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
*** Bug 22411 has been marked as a duplicate of this bug. ***
The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3b099df59c47c4f09da0941c096098dde00a87dc commit 3b099df59c47c4f09da0941c096098dde00a87dc Author: Tom Tromey <tom@tromey.com> Date: Sat Apr 20 10:44:13 2024 -0600 Allow function types as template parameters in name canonicalizer This adds function types as template parameters in the C++ name canonicalizer. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=11907 Approved-By: John Baldwin <jhb@FreeBSD.org>
Fixed.