[llvm-bugs] [Bug 40675] New: "Go to definition" on use of explicit specialization jumps to primary template
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Feb 9 15:31:46 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40675
Bug ID: 40675
Summary: "Go to definition" on use of explicit specialization
jumps to primary template
Product: clang-tools-extra
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: unassignedclangbugs at nondot.org
Reporter: zeratul976 at hotmail.com
CC: llvm-bugs at lists.llvm.org
Given the following code:
template <typename T>
struct Waldo {};
template <>
struct Waldo<int> {};
int main() {
Waldo<int> w;
}
Invoking "go to definition" inside the "Waldo<int>" in main() takes you to the
primary template, not the explicit specialization.
I think taking you to the explicit specialization would be more useful and more
in line with user expectations.
--
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/20190209/80344ffa/attachment.html>
More information about the llvm-bugs
mailing list