--- gmsh-2.5.1-svn-20120610-source.orig/Geo/OCCFace.cpp
+++ gmsh-2.5.1-svn-20120610-source/Geo/OCCFace.cpp
@@ -424,7 +424,11 @@
 
 void OCCFace::replaceEdgesInternal(std::list<GEdge*> &new_edges)
 {
+#if defined(OCC_VERSION_HEX) && OCC_VERSION_HEX >= 0x060503
+  Handle(IntTools_Context) myContext=new IntTools_Context;
+#else
   IntTools_Context myContext;
+#endif
   // we simply replace old edges by new edges in the structure
   
   // make a copy of s
