From 7c32ccaaa09d9c0cc3dfae07be32d44022949173 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 13 Nov 2009 18:27:30 +0000
Subject: [PATCH] compiler bug workaround

---
 src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C
index 63969e0dd5d..6f5bf0eac26 100644
--- a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C
+++ b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C
@@ -757,6 +757,8 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
 ) const
 {
     // Build tree out of all samples.
+
+    //Note: cannot be done one the fly - gcc4.4 compiler bug.
     treeBoundBox bb(samples);
 
     octree<octreeDataPoint> ppTree
@@ -859,7 +861,7 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
     scalar maxSearch = max(maxDist);
     vector span(maxSearch, maxSearch, maxSearch);
 
-    // octree.shapes holds reference!
+    //Note: cannot be done one the fly - gcc4.4 compiler bug.
     treeBoundBox bb(samples);
 
     octree<octreeDataPoint> ppTree
-- 
GitLab