[LLVMbugs] [Bug 7907] New: clang c++ crash instantiating value initialization of reference
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 14 20:34:28 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7907
Summary: clang c++ crash instantiating value initialization of
reference
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: crash-on-invalid
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
template <typename T> T f() {
T a = T();
}
template int& f<int&>();
Crashes with:
clang:
/home/eli/llvmgbuild/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h:94:
void clang::Expr::setType(clang::QualType): Assertion `(t.isNull() ||
!t->isReferenceType()) && "Expressions can't have reference type"' failed.
--
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