When compiling givaro with GCC 14.0.1 (as now packaged in Fedora Rawhide, the development version of Fedora Linux), I see the following regression:
givaro/givaro/givaro/random-integer.h: In member function 'Givaro::RandomIntegerIterator<_Unsigned, _Exact_Size>& Givaro::RandomIntegerIterator<_Unsigned, _Exact_Size>::operator=(const Givaro::RandomIntegerIterator<_Unsigned, _Exact_Size>&)':
givaro/givaro/givaro/random-integer.h:90:54: error: no match for 'operator=' (operand types are 'Givaro::RandomIntegerIterator<_Unsigned, _Exact_Size>::Integer_Domain' {aka 'Givaro::ZRing<Givaro::Integer>'} and 'const Givaro::RandomIntegerIterator<_Unsigned, _Exact_Size>::Integer_Domain' {aka 'const Givaro::ZRing<Givaro::Integer>'})
90 | const_cast<Integer_Domain&>(_ring)=R._ring;
| ^~~~~
I initially observed this with givaro 4.2.0, but I can also reproduce it with current master, a6b3708.
I would be happy to offer a PR, but I haven’t figured out what the correct fix is.
When compiling
givarowith GCC 14.0.1 (as now packaged in Fedora Rawhide, the development version of Fedora Linux), I see the following regression:I initially observed this with givaro 4.2.0, but I can also reproduce it with current
master, a6b3708.I would be happy to offer a PR, but I haven’t figured out what the correct fix is.