#2818: failing tests with gcc-14
Reporter:Roland Haas
Status:open
Milestone:
Version:
Type:bug
Priority:major
Component:EinsteinToolkit thorn

Comment (by Roland Haas):

The negative array index warning is actually from within AMReX:

COMPILING CarpetX/CarpetX/src/reduction.cxx
In file included from /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_Box.H:9,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_BaseFab.H:9,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_FArrayBox.H:6,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/arrangements/CarpetX/Loop/src/loop.hxx:4,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/bindings/include/loop.hxx:4,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/arrangements/CarpetX/CarpetX/src/driver.hxx:4,
                 from /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/build/CarpetX/reduction.cxx:1:
In member function ?constexpr int& amrex::IntVectND<dim>::operator[](int) [with int dim = 3]?,
    inlined from ?amrex::Box amrex::BATbndryReg::operator()(const amrex::Box&) const? at /data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_BoxArray.H:223:25:
/data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_IntVect.H:240:79: warning: array subscript -1 is below array bounds of ?int [3]? [-Warray-bounds=]
  240 |     int& operator[] (int i) noexcept { BL_ASSERT(i>=0 && i < dim); return vect[i]; }
      |                                                                           ~~~~^
/data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_IntVect.H: In member function ?amrex::Box amrex::BATbndryReg::operator()(const amrex::Box&) const?:
/data/rhaas/postdoc/gr/cactus/ET_Next/configs/sim/scratch/external/AMReX/include/AMReX_IntVect.H:788:9: note: while referencing ?amrex::IntVectND<3>::vect?
  788 |     int vect[dim] = {};
      |         ^~

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2818/failing-tests-with-gcc-14