'Illegal instruction (core dumped) CGAL4.13 istringstream to EK::FT

#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <iostream>
#include <fstream>
#include <sstream>
typedef CGAL::Exact_predicates_exact_constructions_kernel EK;

int main() {

  std::istringstream s;
  s.str("0.01\t3E-5\t4E-4\n");
  std::cout<< s.str();
  for (int n=0; n<3; n++) {
    EK::FT val;
    s >> val;
    std::cout << val << '\n';
  }

  return 0;
}            

                                                                                                                                                               

I was trying to read in a string into three EK::FT variables. The code compiled but I got Illegal instruction (core dumped) error while executing the line "s>>val". This code worked in previous environment. And if I change the variable of val to double, it worked. Currently I use gcc (GCC) 9.3.0 compiler on Rocky 8 OS.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source