[LLVMbugs] [Bug 17923] New: crash with non-dependent friend defined in uninstantiated class template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 13 19:17:39 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17923
Bug ID: 17923
Summary: crash with non-dependent friend defined in
uninstantiated class template
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This causes clang to assert in IR generation (trying to emit the definition of
'f'):
void f(unsigned long long);
template<typename T> struct X {
friend void f(unsigned long long) {
T t;
}
};
int main() { f(1234); }
--
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/20131114/92ee686b/attachment.html>
More information about the llvm-bugs
mailing list