[ROOT-6603] Segfault when printing std map element which is a TString Created: 22/Aug/14  Updated: 24/Nov/16  Resolved: 26/Sep/14

Status: Closed
Project: ROOT
Component/s: Cling
Affects Version/s: 6.00.02
Fix Version/s: 6.02.00

Type: Bug Priority: Critical
Reporter: Danilo Piparo Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None

kubuntu 14 clang 3.5



Typing these lines at the prompt causes a segfault:

#include <map>
using namespace std;
map<Int_t, TString> ha
ha[0] = "kiki"

Same behaviour with vector and list. Not seen with single TStrings or array of TStrings.

Comment by Axel Naumann [ 22/Sep/14 ]

root [4] ha[0]
input_line_29:2:21: error: use of undeclared identifier 'mapped_type'
 cling::printValue((mapped_type *)0x3f556b8,(mapped_type *)0x3f556b8,(*(cling::Value*)0x7fff0ad56ae0));

Comment by Axel Naumann [ 26/Sep/14 ]

Fixed in accc23e.

Generated at Mon Feb 24 17:13:46 CET 2020 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.