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

Dune flyspray at dune-project.org
Sat Jun 2 16:00:05 CEST 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Oliver Sander (sander) 

Attached to Project - Dune
Summary - test-geogrid.cc doesn't compile with gcc 4.7
Task Type - Bug Report
Category - GeometryGrid
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - High
Reported Version - 2.2
Due in Version - Undecided
Due Date - Undecided
Details - 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<void> >':
/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<void> >'
/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<void> >'
../../../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<char>]'
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---



More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1120

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list