[llvm-bugs] [Bug 48684] New: error: no return statement in constexpr function for templated MPI_Datatype
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 7 05:01:16 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48684
Bug ID: 48684
Summary: error: no return statement in constexpr function for
templated MPI_Datatype
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: rai.deepali07 at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Created attachment 24356
--> https://bugs.llvm.org/attachment.cgi?id=24356&action=edit
test.out.cpp with mpi.h included in it.
Attached test case when compiled with clang++, gives this error:
test.cpp:5:24: error: no return statement in constexpr function
constexpr MPI_Datatype get_mpi_type() {
^
test.cpp:10:24: error: no function template matches function template
specialization 'get_mpi_type'
constexpr MPI_Datatype get_mpi_type<float>() {
^
test.cpp:5:24: note: candidate template ignored: substitution failure [with num
= float]
constexpr MPI_Datatype get_mpi_type() {
^
test.cpp:15:14: error: no function template matches function template
specialization 'get_mpi_type'
MPI_Datatype get_mpi_type<double>() {
^
test.cpp:5:24: note: candidate template ignored: substitution failure [with num
= double]
constexpr MPI_Datatype get_mpi_type() {
^
3 errors generated.
If any once has any idea on this issue please let me know.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210107/4faab59e/attachment.html>
More information about the llvm-bugs
mailing list