[ET Trac] #2818: failing tests with gcc-14
Roland Haas
trac-noreply at einsteintoolkit.org
Fri Nov 8 08:40:20 CST 2024
#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:
```text
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] = {};
| ^~~~
```
and from the output I cannot see who may be calling `amrex::Box amrex::BATbndryReg::operator()(const amrex::Box&)` other than “somewhere in `reduction.cxx`".
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2818/failing-tests-with-gcc-14
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20241108/1d5f68a6/attachment-0001.htm>
More information about the Trac
mailing list