https://bugs.llvm.org/show_bug.cgi?id=48684
Richard Smith <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Richard Smith <[email protected]> ---
The code in question:
template <typename num>
constexpr MPI_Datatype get_mpi_type() {
throw std::logic_error("ERROR: get_mpi_type NOT IMPLEMENTED FOR THIS
DATATYPE");
}
This violates the language rules: no specialization of this function could ever
be used in a constant expression, so a compiler is permitted (but not required)
to diagnose it. Try removing the 'constexpr' from this declaration.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs