#656 gmshtest-alberta doesn't compile with g++-4.4
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Nov 11, 2009 11:29 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Last edited at | Nov 11, 2009 15:54 |
Closed by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Closed at | Nov 11, 2009 15:54 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | in revision 5915 |
Description
This is kind of importantish, because the bug seems to occur whenever GridFactory is used.
sander@haile:~/dune/dune-grid/dune/grid/io/file/test$ make CXX="g++-4.4 -std=c++0x" gmshtest-alberta
g++-4.4 -std=c++0x -DHAVE_CONFIG_H -I. -I../../../../.. -I/home/haile/sander/dune/dune-common -I../../../../.. -g -Wall -O0 -I/home/haile/sander/alberta-inst/include/alberta -DALBERTA_DIM=2 -DENABLE_ALBERTA -g -MT gmshtest_alberta-gmshtest-alberta.o -MD -MP -MF .deps/gmshtest_alberta-gmshtest-alberta.Tpo -c -o gmshtest_alberta-gmshtest-alberta.o test -f 'gmshtest-alberta.cc' || echo './'
gmshtest-alberta.cc
In file included from ../../../../../dune/grid/albertagrid/agrid.hh:52,
from ../../../../../dune/grid/albertagrid.hh:3,
from gmshtest-alberta.cc:5:
../../../../../dune/grid/common/grid.hh: In member function ‘typename Dune::AlbertaGridEntityPointer<codim, GridImp>::EntityImp& Dune::AlbertaGridEntityPointer<codim, GridImp>::entityImp() [with int codim = 0, GridImp = const Dune::AlbertaGrid<2, 2>]’:
../../../../../dune/grid/albertagrid/entitypointer.hh:140: instantiated from ‘Dune::AlbertaGridEntityPointer<codim, GridImp>::~AlbertaGridEntityPointer() [with int codim = 0, GridImp = const Dune::AlbertaGrid<2, 2>]’
../../../../../dune/grid/albertagrid/treeiterator.hh:107: instantiated from ‘void Dune::AlbertaGrid<dim, dimworld>::globalRefine(int) [with int dim = 2, int dimworld = 2]’
gmshtest-alberta.cc:29: instantiated from here
../../../../../dune/grid/common/grid.hh:1163: error: ‘static typename Dune::GridDefaultImplementation<, , , >::ReturnImplementationType::ImplementationType& Dune::GridDefaultImplementation<, , , >::getRealImplementation(InterfaceType&) [with InterfaceType = Dune::MakeableInterfaceObject<Dune::Entity<0, 2, const Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridEntity> >, int dim = 2, int dimworld = 2, ct = double, GridFamily = Dune::AlbertaGridFamily<2, 2>]’ is protected
../../../../../dune/grid/albertagrid/entitypointer.hh:189: error: within this context
../../../../../dune/grid/common/grid.hh: In member function ‘const typename Dune::AlbertaGridEntityPointer<codim, GridImp>::EntityImp& Dune::AlbertaGridEntityPointer<codim, GridImp>::entityImp() const [with int codim = 0, GridImp = const Dune::AlbertaGrid<2, 2>]’:
../../../../../dune/grid/albertagrid/entitypointer.hh:205: instantiated from ‘const GridImp& Dune::AlbertaGridEntityPointer<codim, GridImp>::grid() const [with int codim = 0, GridImp = const Dune::AlbertaGrid<2, 2>]’
../../../../../dune/grid/albertagrid/entitypointer.hh:141: instantiated from ‘Dune::AlbertaGridEntityPointer<codim, GridImp>::~AlbertaGridEntityPointer() [with int codim = 0, GridImp = const Dune::AlbertaGrid<2, 2>]’
../../../../../dune/grid/albertagrid/treeiterator.hh:107: instantiated from ‘void Dune::AlbertaGrid<dim, dimworld>::globalRefine(int) [with int dim = 2, int dimworld = 2]’
gmshtest-alberta.cc:29: instantiated from here
../../../../../dune/grid/common/grid.hh:1163: error: ‘static typename Dune::GridDefaultImplementation<, , , >::ReturnImplementationType::ImplementationType& Dune::GridDefaultImplementation<, , , >::getRealImplementation(InterfaceType&) [with InterfaceType = Dune::MakeableInterfaceObject<Dune::Entity<0, 2, const Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridEntity> >, int dim = 2, int dimworld = 2, ct = double, GridFamily = Dune::AlbertaGridFamily<2, 2>]’ is protected
../../../../../dune/grid/albertagrid/entitypointer.hh:198: error: within this context
In file included from ../../../../../dune/grid/albertagrid/agrid.hh:49,
from ../../../../../dune/grid/albertagrid.hh:3,
from gmshtest-alberta.cc:5:
../../../../../dune/grid/common/grid.hh: In member function ‘void Dune::AlbertaGridIndexSet<dim, dimworld>::update(const Iterator&, const Iterator&) [with Iterator = Dune::LeafIterator<0, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridLeafIterator>, int dim = 2, int dimworld = 2]’:
../../../../../dune/grid/albertagrid/albertagrid.cc:648: instantiated from ‘void Dune::AlbertaGrid<dim, dimworld>::calcExtras() [with int dim = 2, int dimworld = 2]’
../../../../../dune/grid/albertagrid/albertagrid.cc:502: instantiated from ‘bool Dune::AlbertaGrid<dim, dimworld>::adapt() [with int dim = 2, int dimworld = 2]’
../../../../../dune/grid/albertagrid/albertagrid.cc:393: instantiated from ‘void Dune::AlbertaGrid<dim, dimworld>::globalRefine(int) [with int dim = 2, int dimworld = 2]’
gmshtest-alberta.cc:29: instantiated from here
../../../../../dune/grid/common/grid.hh:1163: error: ‘static typename Dune::GridDefaultImplementation<, , , >::ReturnImplementationType::ImplementationType& Dune::GridDefaultImplementation<, , , >::getRealImplementation(InterfaceType&) [with InterfaceType = Dune::Entity<0, 2, const Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridEntity>, int dim = 2, int dimworld = 2, ct = double, GridFamily = Dune::AlbertaGridFamily<2, 2>]’ is protected
../../../../../dune/grid/albertagrid/indexsets.hh:569: error: within this context
[etc]