MantisBT - CMake
View Issue Details
0013319CMakeCMakepublic2012-06-19 12:312013-01-09 10:56
Daniel Richard G. 
Brad King 
normalminoralways
closedfixed 
PowerPCAIX5.3
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013319: "no matching function for call to std::string.clear(), std::string.push_back()"
From a nightly AIX dashboard, building with a vendor-supplied GCC ("g++ -v" returns "gcc version 2.9-aix51-020209"):

.../CMake/Tests/CMakeLib/run_compile_commands.cxx: In method `void CompileCommandParser::ParseString ()':
.../CMake/Tests/CMakeLib/run_compile_commands.cxx:66: no matching function for call to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::clear ()'
.../CMake/Tests/CMakeLib/run_compile_commands.cxx:71: no matching function for call to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::push_back (char &)'

(from http://open.cdash.org/viewBuildError.php?buildid=2375368 [^])
No tags attached.
Issue History
2012-06-19 12:31Daniel Richard G.New Issue
2012-06-19 14:04Brad KingNote Added: 0029742
2012-06-19 14:15Daniel Richard G.Note Added: 0029743
2012-06-19 14:23Brad KingNote Added: 0029744
2012-06-19 14:23Brad KingAssigned To => Brad King
2012-06-19 14:23Brad KingStatusnew => resolved
2012-06-19 14:23Brad KingResolutionopen => fixed
2012-08-09 19:40David ColeFixed in Version => CMake 2.8.9
2012-08-09 19:40David ColeTarget Version => CMake 2.8.9
2013-01-09 10:56Robert MaynardNote Added: 0032032
2013-01-09 10:56Robert MaynardStatusresolved => closed

Notes
(0029742)
Brad King   
2012-06-19 14:04   
Try replacing 'x.clear()' with 'x = ""' and 'x.pushback(y)' with 'x.append(1,y)'.
(0029743)
Daniel Richard G.   
2012-06-19 14:15   
Yep, it compiles cleanly with

    this->String = "";
    this->String.append(1, C);
(0029744)
Brad King   
2012-06-19 14:23   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=96b66a49 [^]
(0032032)
Robert Maynard   
2013-01-09 10:56   
Closing resolved issues that have not been updated in more than 4 months.