[Olena] #242: Operator+(object, builtin) does not work as expected since g++ 4.5

#242: Operator+(object, builtin) does not work as expected since g++ 4.5 ----------------------+----------------------------------------------------- Reporter: lazzara | Owner: Olena Team Type: defect | Status: new Priority: critical | Milestone: Component: Milena | Version: 1.0 Keywords: | ----------------------+----------------------------------------------------- Compiling this example with g++ 4.5 or later with optimization flags makes this program print '0' instead of '1'. {{{ #include <mln/value/int_u16.hh> int main() { mln::value::int_u16 v = 0; std::cout << v + 1 << std::endl; } }}} It seems that g++ is producing invalid optimized code. Without optimization, the printed result is valid. -- Ticket URL: <https://trac.lrde.org/olena/ticket/242> Olena <http://olena.lrde.epita.fr> Olena, a generic and efficient C++ image processing library.
participants (1)
-
Olena Trac