[Dune] Strange dune-common compilation error

Aleksejs Fomins aleksejs.fomins at lspr.ch
Thu Sep 4 12:15:16 CEST 2014

Dear Dune,

I have just changed some functionality like constructing simplex
geometries and checking if an element is simplex using geometry types.
Basically, I have lines of code like

if ((refElement_->type()).isSimplex()) { /* do sth */  }


Dune::GeometryType faceGeometry;

scattered around the code.

I have just compiled (make check) the test files in the
dune/geometry/test, and get the following error


mpicxx -std=c++11 -DHAVE_CONFIG_H -I. -I../../..
-I/home/fomins/gitwork/hades-github-lspr-ag/dune-common -I../../..
-DMPICH_IGNORE_CXX_SEEK -O2 -g0 --no-strict-aliasing  -MT
test-curvilinearelementinterpolation.o -MD -MP -MF
.deps/test-curvilinearelementinterpolation.Tpo -c -o
In file included from ../../../dune/geometry/referenceelements.hh:11:0,
                 from test-curvilinearelementinterpolation.cc:9:
error: expected ‘;’ after class definition
 } nullptr = {};              // and whose name is nullptr
error: qualifiers can only be specified for objects and functions
error: expected unqualified-id before ‘nullptr’
 } nullptr = {};              // and whose name is nullptr


Do you think there could be a typo in the nullptr.hh class?

I have not edited anything in dune/common/ and I have not edited the
referenceelements.hh either.

Thank you,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140904/83c54688/attachment.pgp>

More information about the Dune mailing list