CGAL-based CSG meshing broken with GCC 4.8

Issue #135 invalid
Prof Garth Wells created an issue

Most/all CGAL-based 3D mesh generation code fails and throws cryptic errors when using GCC 4.8, for example

demo/documented/csg-3D/
demo/undocumented/curl-curl

Comments (5)

  1. Anders Logg (Chalmers)

    Those demos work fine for me with GCC 4.8.1, but I have a (manually) patched std::nth_element. Could you try editing

    /usr/include/c++/4.8/bits/stl_algo.h
    

    (or wherever you have it located on your Mac) and edit the following two lines:

    std::__move_median_to_first(__first, __first + 1, __mid, (__last - 1));
    std::__move_median_to_first(__first, __first + 1, __mid, (__last - 1));
    

    Should be -1 and not -2.

  2. Log in to comment