[LLVMbugs] [Bug 16618] New: Unnecessary warning about undefined inline for constexpr function template when used in an unevaluated context
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 13 11:16:37 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: dblaikie at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130713/3b9358a5/attachment.html>
More information about the llvm-bugs
mailing list