Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] errors in Delaunay code when using optimized CGAL lib on mac
  • Date: Wed, 17 Oct 2007 14:13:55 +0200
  • Organization: INRIA

Andrei Zaharescu a écrit :
Hi everybody,

I am encountering an error when using the CGAL library compiled with optimization flags on mac intel (with -O1 or -O2 or -O3).

Basically, if I try the provided examples from:

/examples/Triangulation_2/regular

I get some precondition violations. This does not happen when no optimization flags are being used.
Thanks in advance to everyone. The error occurs when invoking the rt.is_valid() command.

CGAL error: precondition violation!
Expr: it1.e_ == it2.e_
File: ../../include/CGAL/iterator.h
Line: 563
Explanation:
terminate called after throwing an instance of 'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: it1.e_ == it2.e_
File: ../../include/CGAL/iterator.h
Line: 563
Abort trap

I can reproduce it in the same conditions.
Note that with g++ 4.2 (easily installed with Fink), it works, though.

I have no clue what can happen, don't have enough to dig into this.
I'd suggest you uncomment the precondition, it's not an important one.
Maybe a compiler bug...

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page