Commit b7eb7b38 authored by Robert K's avatar Robert K

[!61] Fix for optimized clang 7 builds

Merge branch 'bugfix/fix-error-on-clang-7' into 'master'

ref:extensions/dune-alugrid When building current ALUGrid with clang 7 in
optimized mode (-O3), I get assertion errors during grid construction. I
traced the problem down to the utility function cyclicReorder(), which
contains a rather complicated expression that lacks intermediate sequence
points. This seems to horribly trip up clang's optimizer.

Fixed by splitting the offending expression into separate statements.

Closes [#50]

See merge request [!61]

  [#50]: gitlab.dune-project.org/NoneNone/issues/50
  [!61]: gitlab.dune-project.org/extensions/dune-alugrid/merge_requests/61


Closes #50
parents 005ec22c f89188b8
Pipeline #16441 failed with stage
in 89 minutes and 41 seconds