[llvm-bugs] [Bug 31827] New: Crash when declaring friend with full namespace and decltype(auto)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 31 12:07:53 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31827
Bug ID: 31827
Summary: Crash when declaring friend with full namespace and
decltype(auto)
Product: clang
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: gufideg at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Minimal case:
namespace code {
template<typename T>
decltype(auto) test(T&&);
struct Test {
template<typename T>
friend decltype(auto) ::code::test(T&&);
};
}
Removing ::code:: make this code compile under clang.
--
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/20170131/1aa9244f/attachment.html>
More information about the llvm-bugs
mailing list