GCC 7.1.1 encounters an internal error when parsing the current version of this;
we can get around the problem by naming the initializer list of pointers.
"Not all of the input arguments of this function "
"are derived from FiniteElement<dim,spacedim>!");
- // loop over all of the given arguments and add the finite
- // elements to this collection
- for (auto p :
- {
- &fes...
- })
+ // loop over all of the given arguments and add the finite elements to
+ // this collection. Inlining the definition of fe_pointers causes internal
+ // compiler errors on GCC 7.1.1 so we define it separately:
+ const auto fe_pointers = { &fes... };
+ for (auto p : fe_pointers)
push_back (*p);
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams