[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
Environment:

kubuntu 14 clang 3.5


Development:

 Description   

Typing these lines at the prompt causes a segfault:

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

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



 Comments   
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 Sat Sep 21 07:15:55 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.