#740: Carpet commit c8eecbe1968f breaks gcc compilation --------------------+------------------------------------------------------- Reporter: tbode | Owner: eschnett Type: defect | Status: new Priority: major | Milestone: Component: Carpet | Version: development version Keywords: | --------------------+------------------------------------------------------- I get the following fatal error when compiling the latest development ET, fresh checkout, with gcc 4.6.
{{{ #!div style="font-size: 70%" {{{#!python COMPILING .../CarpetLib/src/gdata.cc .../CarpetLib/src/gdata.cc: In function 'MPI_Datatype mpi_datatype(const slab<T, D>&) [with T = int, int D = 3, MPI_Datatype = int]': .../CarpetLib/src/gdata.hh:42:43: instantiated from here .../CarpetLib/src/gdata.cc:51:21: error: uninitialized const 's' [-fpermissive] .../CarpetLib/src/gdata.hh:27:8: note: 'const struct slab<int, 3>' has no user-provided default constructor }}} }}}
I tracked it down to Carpet commit c8eecbe1968f (11. Jan). Is somebody hiding a patch with a constructor or is there another fix?
#740: Carpet commit c8eecbe1968f breaks gcc compilation ---------------------+------------------------------------------------------ Reporter: tbode | Owner: eschnett Type: defect | Status: new Priority: major | Milestone: Component: Carpet | Version: development version Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by rhaas):
you need a constructor in 'struct slab'. An empty one will do. I'll commit a patch (had already written it for myself)...
#740: Carpet commit c8eecbe1968f breaks gcc compilation ---------------------+------------------------------------------------------ Reporter: tbode | Owner: eschnett Type: defect | Status: closed Priority: major | Milestone: Component: Carpet | Version: development version Resolution: fixed | Keywords: ---------------------+------------------------------------------------------ Changes (by rhaas):
* status: new => closed * resolution: => fixed
trac@lists.einsteintoolkit.org