[llvm-bugs] [Bug 38174] New: warning: inline function '(...)' is not defined (even though it is)
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 16 00:39:14 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38174
Bug ID: 38174
Summary: warning: inline function '(...)' is not defined (even
though it is)
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: andrzej.warzynski at spire.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Hello,
$cat baz.cpp:
class A {
template <char N>
struct Foo {
static constexpr char Bar() { return 0; }
};
using Constants = Foo<1>;
char var = Constants::Bar();
};
$ clang++ -std=c++17 -c bug.cpp
bug.cpp:4:27: warning: inline function 'A::Foo<'\x01'>::Bar' is not defined
[-Wundefined-inline]
static constexpr char Bar() { return 0; }
^
bug.cpp:9:25: note: used here
char var = Constants::Bar();
^
1 warning generated.
This warning shouldn't be here, should it? Originally discovered with clang-6,
but I've also checked ToT and that also issues a warning. Could be somewhat
related to 18781, but that particular problem seems to be fixed.
--
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/20180716/40d50da9/attachment.html>
More information about the llvm-bugs
mailing list