[llvm-bugs] [Bug 45617] New: No-op Boost/CGAL code fails to compile with clang-cl

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 20 03:35:57 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45617

            Bug ID: 45617
           Summary: No-op Boost/CGAL code fails to compile with clang-cl
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vanboxem.ruben at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Attached repro case fails to compile.
Original code uses CGAL 4.14 and Boost 1.70.
This also failed with Clang version 9.0.1 as well as current trunk.

Basically this code fails to compile:

#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>

typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Polyhedron_3 <Kernel>                         KernelPolyhedron;
typedef KernelPolyhedron::HalfedgeDS                              HalfedgeDS;
typedef CGAL::Polyhedral_mesh_domain_3<KernelPolyhedron, Kernel>  MeshDomain;

#ifdef CGAL_CONCURRENT_MESH_3
typedef CGAL::Mesh_triangulation_3 <
MeshDomain,
CGAL::Kernel_traits<MeshDomain>::Kernel, // Same as sequential
CGAL::Parallel_tag                        // Tag to activate parallelism
>::type Tr;
#else
typedef CGAL::Mesh_triangulation_3<MeshDomain>::type   Tr;
#endif

typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr>     C3T3;
typedef CGAL::Mesh_criteria_3<Tr>                       MeshCriteria;
typedef C3T3::Vertices_in_complex_iterator              VerticesIterator;
typedef C3T3::Cells_in_complex_iterator                 CellsIterator;
typedef C3T3::Facets_in_complex_iterator                FacetsIterator;
typedef Tr::Finite_vertices_iterator                    FiniteVerticesIterator;
typedef Tr::Vertex_handle                               VertexHandle;

using namespace CGAL::parameters;

bool buildMesh(/*cgal::SurfaceMeshPolisherInputData & inputData,
cgal::SurfaceMeshPolisherOutputData & outputData, */bool * cancel)
{
    KernelPolyhedron polyhedron;
    bool ok = true;
    C3T3 c3t3;
    return ok;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200420/fed930d6/attachment.html>


More information about the llvm-bugs mailing list