Carpet commit c8eecbe1968f breaks gcc compilation

Create issue
Issue #740 closed
Tanja Bode created an issue

I get the following fatal error when compiling the latest development ET, fresh checkout, with gcc 4.6.

  {{{#!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?

Keyword:

Comments (3)

  1. Roland Haas
    • removed comment

    you need a constructor in 'struct slab'. An empty one will do. I'll commit a patch (had already written it for myself)...

  2. Log in to comment