https://llvm.org/bugs/show_bug.cgi?id=23351
Bug ID: 23351
Summary: Initializing reference to array crashes clang:
Assertion `CurInit.get()->isRValue() && "not a
temporary"' failed.
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
either:
const char (&V)[]{"a"};
or:
const char (&V)[1]{"a"};
results in:
lib/Sema/SemaInit.cpp:6031: clang::ExprResult
clang::InitializationSequence::Perform(clang::Sema&, const
clang::InitializedEntity&, const clang::InitializationKind&,
clang::MultiExprArg, clang::QualType*): Assertion `CurInit.get()->isRValue() &&
"not a temporary"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs