[LLVMbugs] [Bug 13166] New: Out-of-line definition does not match any declaration error message could be improved
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 21 12:47:03 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13166
Bug #: 13166
Summary: Out-of-line definition does not match any declaration
error message could be improved
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: st at quanttec.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
It would be nice if the Clang could produce a better error message for the
following code:
struct Test {
typedef int T;
template <typename T>
void test(T value);
};
template <typename T>
void Test::test(T value) {}
Currently the error message only reads
test.cpp:10:12: error: out-of-line definition of 'test' does not match any
declaration in 'Test'
void Test::test(T value) {}
^~~~
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list