[LLVMbugs] [Bug 18683] New: Providing a fix-it for -Wstatic-inline-explicit-instantiation would be nice
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 31 10:26:11 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18683
Bug ID: 18683
Summary: Providing a fix-it for
-Wstatic-inline-explicit-instantiation would be nice
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: hans at chromium.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Compiling the following code causes a warning:
template<typename T> struct S {
void f() { }
};
inline template<> void S<int>::f() {
};
a.cc:4:1: warning: ignoring 'inline' keyword on explicit template
instantiation [-Wstatic-inline-explicit-instantiation]
inline template<> void S<int>::f() {
^
When I saw this I didn't realize my mistake, but figured that maybe one is not
allowed to use 'inline' with explicit template instantiations.
It would be cool if we could provide a fix-it hint to show that the inline just
needs to be put in the right place.
--
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/20140131/e15e4fc9/attachment.html>
More information about the llvm-bugs
mailing list