This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21893] New: template_argument(0) gives syntax error
- From: "jrmuizel at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 02 Aug 2017 21:20:17 +0000
- Subject: [Bug rust/21893] New: template_argument(0) gives syntax error
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21893
Bug ID: 21893
Summary: template_argument(0) gives syntax error
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rust
Assignee: unassigned at sourceware dot org
Reporter: jrmuizel at gmail dot com
Target Milestone: ---
Given the following program:
use std::collections::HashMap;
fn main() {
let m : HashMap<u32, Vec<u32>> = HashMap::new();
println!("Hello, world! {:?}", m);
}
print(gdb.parse_and_eval("m")["table"].type.template_argument(0))
gives a:
RuntimeError: syntax error, near `>>'
Error while executing Python code.
--
You are receiving this mail because:
You are on the CC list for the bug.