Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 5.1 compile errors when using Intel Compiler 19.1

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 5.1 compile errors when using Intel Compiler 19.1


Chronological Thread 
  • From: Andrew Cunningham <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 5.1 compile errors when using Intel Compiler 19.1
  • Date: Tue, 8 Sep 2020 13:23:56 -0700
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:oy67Oxa2JmTgPfLVjrv32QH/LSx+4OfEezUN459isYplN5qZr869bnLW6fgltlLVR4KTs6sC17OI9fm6BSdQuN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLRi6txjdutcZjIdtKas91wbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrR2uqRxwwY7abo+WOvRjYK3SYcgXSnBdUstLTSFNHp+wYokJAuEcPehYtY79p14WoBaiAwmjGfnvxSFGh3Trw6A6zuIhEQfH3AwmENIOsG7brNDoP6oVTe+1w7PHzTHYYvxMwDvy9JXIchYnofGNW7JwfsrRxlMqFw/fklqQronlMiqT2+8QvGeV8/BuWvizi247tQ5xuD6vy98uh4TJiY8YxFDJ+yp9zYs1JNC1RlN3bNCqHpZftiyWK4h7T8MmTmx2uCg3178Lt5G/cSUO1ZkqxxDRZv2HfoWV5B/oSeWfIS9giX57ZL6ygwy+/Eugx+HmSMW4zUpGojBKn9TMsH0Gygbd5dKdSvRn+0eswTaP2B7X6uFDOU00kLDUK58lwrIpkZoTrVnPEjb4mEj5jKKabEok+u+v6+ToZrXpuIWQOJNzigH7Kqgum8q/DvokMgUWQWSX5eCx2Kfg8ED5WrlGkOA6nrXDvJ3VJckXvqu5DBVU0oYn5Ra/FTCm0NEAkHYdMV1FfROHj47yNl7UOfz3Eeq/g1KqkDdqwfDGMb3hDY/ILnTZjLjherN951ZGyAUv1dBf+45UCrYZLf3vVU/+rtjYAgYkPAy12OboFMh91pgFWW+UGa+YMKbSsUeS6e41IumMYpUVuDfnJPQ/6f7ulyxxpVhIdqag2d4baWuzA+99C0Sfe3vlxNkbQkkQuQ9rZermklCdGRVOYXCzWa087zRzXImpBIPrT8WmnbqH3SG0HpRTIGtBDwbfQj/Ta4yYVqJUO2qpKch7n2lcDOnze8oazRir8TTC5f9iJ+vQ9DcfsMuzhtEw7PDVkxA0+jx9CoKW1GTfFzgpzFNNfCc/2eVEmWI4ylqH1vIl0flRFNgW4O8QFwlmaNjTyOt1D920UQXELI/QFASWB+6+CDR0deofhscUah8tSdznhQ3F2SusDL8ckvqAA5lmqq8=

This ussue only seems to happen with /std:c++17. If I change the language conformance to /std:c++14 the code compiles with ICC 19.1

On Tue, Sep 8, 2020 at 12:34 PM Andrew Cunningham <> wrote:
Hi,
Code that compiles without error when using GCAL 5.0.3 now fails with 5.1 with Visual Studio 2019+Intel Compiler 19.1.
Code compiles without error when using the native Microsoft compiler.
Since the same code compiled with 5.0.3 when using ICC 19.1, maybe whatever changed from 5.0.3-5.1 is the key.

Sample code

#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>

using Point_3           = CGAL::Simple_cartesian< float >::Point_3;
using Mesh              = CGAL::Surface_mesh< Point_3 >;
using vertex_descriptor = Mesh::Vertex_index;
using face_descriptor   = Mesh::Face_index;

Andrew



1>D:\CGAL-5.1\include\CGAL/Cartesian/Line_3.h(38): error : incomplete type is not allowed
1>      Point_3 first;
1>              ^
1>          detected during:
1>            instantiation of class "CGAL::LineC3<R_>::Rep [with R_=CGAL::Simple_cartesian<float>]" at line 46
1>            instantiation of class "CGAL::LineC3<R_> [with R_=CGAL::Simple_cartesian<float>]" at line 30 of "D:\CGAL-5.1\include\CGAL/Line_3.h"
1>            instantiation of class "CGAL::Line_3<R_> [with R_=CGAL::Simple_cartesian<float>]" at line 678 of "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\type_traits"
1>            instantiation of "const bool std::is_move_constructible_v [with _Ty=CGAL::VectorC3<CGAL::Simple_cartesian<float>>]" at line 61 of "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\type_traits"
1>            instantiation of class "std::conjunction<_First, _Rest...> [with _First=std::_Swappable_with_helper<std::add_lvalue_reference_t<CGAL::VectorC3<CGAL::Simple_cartesian<float>>>, std::add_lvalue_reference_t<CGAL::VectorC3<CGAL::Simple_cartesian<float>>>, void>, _Rest=<std::_Swappable_with_helper<std::add_lvalue_reference_t<CGAL::VectorC3<CGAL::Simple_cartesian<float>>>, std::add_lvalue_reference_t<CGAL::VectorC3<CGAL::Simple_cartesian<float>>>, void>>]" at line 66 of "C:\Program Files
1>                      (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include\type_traits"
1>            [ 9 instantiation contexts not shown ]
1>            instantiation of class "CGAL::Point_3<R_> [with R_=CGAL::Simple_cartesian<float>]" at line 213 of "D:\CGAL-5.1\include\CGAL/Surface_mesh/Properties.h"
1>            instantiation of class "CGAL::Properties::Property_array<T> [with T=Point_3]" at line 515 of "D:\CGAL-5.1\include\CGAL/Surface_mesh/Properties.h"
1>            instantiation of class "CGAL::Properties::Property_map_base<I, T, CRTP_derived_class> [with I=CGAL::SM_Vertex_index, T=Point_3, CRTP_derived_class=CGAL::Surface_mesh<Point_3>::Property_map<CGAL::SM_Vertex_index, Point_3>]" at line 342 of "D:\CGAL-5.1\include\CGAL/Surface_mesh/Surface_mesh.h"
1>            instantiation of class "CGAL::Surface_mesh<P>::Property_map<I, T> [with P=Point_3, I=CGAL::SM_Vertex_index, T=Point_3]" at line 2098 of "D:\CGAL-5.1\include\CGAL/Surface_mesh/Surface_mesh.h"

1>

etc more like this.



Archive powered by MHonArc 2.6.19+.

Top of Page