Skip to content

#1120 test-geogrid.cc doesn't compile with gcc 4.7

Metadata

Property Value
Reported by Oliver Sander (oliver.sander@tu-dresden.de)
Reported at Jun 2, 2012 14:00
Type Bug Report
Version 2.2
Operating System Unspecified / All
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Jun 3, 2012 12:54
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Jun 3, 2012 12:54
Closed in version Unknown
Resolution Fixed
Comment in 8209 (trunk) and 8210 (2.2 branch)

Description

With dune-grid r8198 (von tags/2.2beta2) + r8201. Fairly important, because it prevents the Debian package from being built.

Kernel: Linux 3.2.0-2-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-6.1 dpkg-dev_1.16.3 g++-4.6_4.6.3-7 g++-4.7_4.7.0-11 gcc-4.6_4.6.3-7 gcc-4.7_4.7.0-11 libc6-dev_2.13-32 libstdc++6_4.7.0-11 libstdc++6-4.6-dev_4.6.3-7 libstdc++6-4.7-dev_4.7.0-11 linux-libc-dev_3.2.18-1 [...] g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -DDUNE_DEVEL_MODE -DDUNE_GRID_EXAMPLE_GRIDS_PATH="../../../doc/grids/" -D_FORTIFY_SOURCE=2 -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -DMPIPP_H -DENABLE_MPI=1 -I/usr/include -DENABLE_GMP=1 -DGRIDDIM=2 -DWORLDDIM=2 -DYASPGRID -I/usr/include -I/usr/include/alberta -DALBERTA_DIM=2 -DENABLE_ALBERTA -DCOORDFUNCTION=IdenticalCoordFunction<double,2> -DCACHECOORDFUNCTION=0 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o test_geogrid-test-geogrid.o test -f 'test-geogrid.cc' || echo './'test-geogrid.cc In file included from /usr/include/c++/4.7/bits/stl_construct.h:63:0, from /usr/include/c++/4.7/vector:63, from ../../../dune/grid/yaspgrid.hh:5, from ../../../config.h:325, from test-geogrid.cc:1: /usr/include/c++/4.7/ext/alloc_traits.h: In instantiation of 'struct __gnu_cxx::__alloc_traits<std::allocator >': /usr/include/c++/4.7/bits/stl_vector.h:76:28: required from 'struct std::_Vector_base<Dune::GeoGrid::IndexSet<const Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u> >, Dune::IndexSet<const Dune::YaspGrid<2>, Dune::YaspLevelIndexSet<const Dune::YaspGrid<2> >, unsigned int> >*, std::allocator >' /usr/include/c++/4.7/bits/stl_vector.h:208:11: required from 'class std::vector<Dune::GeoGrid::IndexSet<const Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u> >, Dune::IndexSet<const Dune::YaspGrid<2>, Dune::YaspLevelIndexSet<const Dune::YaspGrid<2> >, unsigned int> >*, std::allocator >' ../../../dune/grid/geometrygrid/grid.hh:703:55: required from 'class Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u> >' test-geogrid.cc:61:32: required from 'void test(const string&) [with GeometryGridType = Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u> >; std::string = std::basic_string]' test-geogrid.cc:111:30: required from here /usr/include/c++/4.7/ext/alloc_traits.h:103:53: error: forming reference to void /usr/include/c++/4.7/ext/alloc_traits.h:104:53: error: forming reference to void In file included from test-geogrid.cc:12:0: --8<---------------cut here---------------end--------------->8---