MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015318 | CMake | CMake | public | 2014-12-18 11:14 | 2015-05-04 09:05 | |||||
Reporter | Fritz H | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | OS | Solaris | OS Version | 10 | ||||||
Product Version | CMake 3.1 | |||||||||
Target Version | CMake 3.1.1 | Fixed in Version | CMake 3.1.1 | |||||||
Summary | 0015318: cmComputeLinkDepends.cxx fils to compile | |||||||||
Description | os: solaris 10, compiler: sunstudio 12.1 file Source/cmComputeLinkDepends.cxx fails to compile, error: line 270: Error: Cannot use std::reverse_iterator<int*, std::random_access_iterator_tag, int, int&, int*, int> to initialize std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const int&, const int*, int>. line 271: Error: Cannot use std::reverse_iterator<int*, std::random_access_iterator_tag, int, int&, int*, int> to initialize std::reverse_iterator<const int*, std::random_access_iterator_tag, int, const int&, const int*, int>. i am not an expert in c++, but the following change at least satisfied the compiler: --- cmake-3.1.0_orig/Source/cmComputeLinkDepends.cxx Mon Dec 15 21:07:43 2014 +++ cmake-3.1.0/Source/cmComputeLinkDepends.cxx Thu Dec 18 16:17:00 2014 @@ -266,7 +266,7 @@ // Iterate in reverse order so we can keep only the last occurrence // of a shared library. std::set<int> emmitted; - for(std::vector<int>::const_reverse_iterator + for(std::vector<int>::reverse_iterator li = this->FinalLinkOrder.rbegin(), le = this->FinalLinkOrder.rend(); li != le; ++li) | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | 0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch (1,247) 2014-12-18 11:26 https://public.kitware.com/Bug/file/5328/0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-12-18 11:14 | Fritz H | New Issue | ||||||||
2014-12-18 11:21 | Brad King | Note Added: 0037487 | ||||||||
2014-12-18 11:26 | Brad King | File Added: 0001-Fix-compilation-with-the-Oracle-Sun-compiler-15318.patch | ||||||||
2014-12-18 11:26 | Brad King | Note Added: 0037488 | ||||||||
2014-12-18 11:26 | Brad King | Status | new => acknowledged | |||||||
2014-12-18 11:26 | Brad King | Target Version | => CMake 3.1.1 | |||||||
2014-12-18 11:39 | Brad King | Relationship added | related to 0015317 | |||||||
2014-12-22 14:27 | Brad King | Note Added: 0037510 | ||||||||
2014-12-22 14:27 | Brad King | Assigned To | => Brad King | |||||||
2014-12-22 14:27 | Brad King | Status | acknowledged => resolved | |||||||
2014-12-22 14:27 | Brad King | Resolution | open => fixed | |||||||
2014-12-22 14:27 | Brad King | Fixed in Version | => CMake 3.1.1 | |||||||
2015-05-04 09:05 | Robert Maynard | Note Added: 0038706 | ||||||||
2015-05-04 09:05 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|