#2758: icpc 19 fails to compile AMReX
| Reporter: | Roland Haas |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | major |
| Component: | EinsteinToolkit thorn |
AMReX contains code like this:
#include <string_view> static constexpr std::string_view parser_f2_s[] = { "pow", "atan2", "gt", "lt", "geq", "leq", "eq", "neq", "and", "or", "heaviside", "jn", "min", "max", "fmod" };
which fails to compile with “icpc (ICC) 19.1.3.304 20200925” with
$ icpc -gxx-name=g++ -std=gnu++17 -c dummy.cc dummy.cc(4): error: expression must have a constant value { ^ dummy.cc(3): n--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2758/icpc-19-fails-to-compile-amrex