http://llvm.org/bugs/show_bug.cgi?id=16618
Bug ID: 16618
Summary: Unnecessary warning about undefined inline for
constexpr function template when used in an
unevaluated context
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
uneval.cpp:2:15: warning: inline function 'func<int>' is not defined
[-Wundefined-inline]
constexpr int func();
^
uneval.cpp:5:17: note: used here
return sizeof(func<int>());
^
1 warning generated.
blaikie@blaikie:~/dev/scratch$ cat uneval.cpp
template<typename T>
constexpr int func();
int main() {
return sizeof(func<int>());
}
I'm not sure if this is really important/valid, but it seemed strange enough to
file.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs