From f1821f2101f81b15e8cd41441c0ffabcd4f9d148 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 25 Sep 2018 16:21:58 +0200 Subject: [PATCH] Workaround a misscompilation bug with Intel Compiler 2019 --- Number_types/include/CGAL/Mpzf.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Number_types/include/CGAL/Mpzf.h b/Number_types/include/CGAL/Mpzf.h index 348cb8c81ba..bcf2c480c87 100644 --- a/Number_types/include/CGAL/Mpzf.h +++ b/Number_types/include/CGAL/Mpzf.h @@ -302,7 +302,13 @@ struct Mpzf { data()[-1] = mini; } void clear(){ - while(*--data()==0); // in case we skipped final zeroes + // while(*--data()==0); + // This line gave a misscompilation by Intel Compiler 2019 + // (19.0.0.117). I replaced it by the following two lines: + // -- Laurent Rineau, sept. 2018 + --data(); + while(*data()==0) { --data(); } // in case we skipped final zeroes + #ifdef CGAL_MPZF_USE_CACHE if (data() == cache) return; #endif