From 107dcac3e03b6334a4415c0028c6111e3acb8b23 Mon Sep 17 00:00:00 2001 From: Chuck Atkins Date: Fri, 12 Dec 2014 10:04:47 -0500 Subject: Fix compilation with the Oracle / Sun compiler (#15318) One piece of code has some ambiguous type deduction that seems to resolve correctly for most compilers but not for the Oracle compiler. Make it more explicit. --- Source/cmComputeLinkDepends.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index 1fb8f30..a636d23 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -266,9 +266,10 @@ cmComputeLinkDepends::Compute() // Iterate in reverse order so we can keep only the last occurrence // of a shared library. std::set emmitted; + const std::vector& cFLO = this->FinalLinkOrder; for(std::vector::const_reverse_iterator - li = this->FinalLinkOrder.rbegin(), - le = this->FinalLinkOrder.rend(); + li = cFLO.rbegin(), + le = cFLO.rend(); li != le; ++li) { int i = *li; -- cgit v0.12