#2818: failing tests with gcc-14
| Reporter: | Roland Haas |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | major |
| Component: | EinsteinToolkit thorn |
Comment (by Roland Haas):
The issue seems to be related to loop.hxx and its code:
190 const PointDesc p =
191 point_desc({CI, CJ, CK}, I, iter, NI, I0, BI, bnd_min, bnd_max,
192 loop_min, loop_max);
where the first arguments gets passed as vect<bool, dim>&. Changing to code to have an explicit variable:
const vect<bool, dim> _CI{CI,CJ,CK};
and passing that one for the first argument makes the tests pass.
Without the explicit variable gcc-14 emits a warning:
In lambda function,
inlined from ?constexpr std::array<_Tp, _Nm> Arith::construct_array(const F&) [with T = bool; long unsigned int N = 1; F = vect<bool, 3>::vect(std::initializer_list<bool>)::<lambda(size_t)>]? at /data/rhaas/postdoc/gr/cactus/ET_trunk
/arrangements/CarpetX/Arith/src/vect.hxx:94:57,
inlined from ?constexpr std::array<_Tp, _Nm> Arith::construct_array(const F&) [with T = bool; long unsigned int N = 2; F = vect<bool, 3&g
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2818/failing-tests-with-gcc-14