id summary reporter owner description type status milestone component version severity resolution keywords cc 8695 boost::polygon faillure with optimizations enabled on g++-4.7.2 hodevel@… Andrii Sydorchuk "Following program does not return same results depending on optimization level. When using -00 with g++-4.7.2, area is 100 (good result). When using -02, area is 0 (bad result). Other compilation options: -Wall -std=c++0x -g {{{ #include #include #include typedef boost::polygon::point_data point_t; typedef boost::polygon::polygon_data poly_t; typedef boost::polygon::polygon_set_data poly_set_t; int main(int argc, char** argv) { using namespace boost::polygon::operators; std::list points = { point_t(0, 0), point_t(10, 0), point_t(10, 10), point_t(0, 10) }; poly_t poly; poly.set(points.begin(), points.end()); poly_set_t poly_set; poly_set |= poly; std::cout << ""poly_set area: "" << boost::polygon::area(poly_set) << std::endl; return 0; } }}} " Bugs closed To Be Determined polygon Boost 1.53.0 Problem worksforme