[LLVMbugs] [Bug 23351] New: Initializing reference to array crashes clang: Assertion `CurInit.get()->isRValue() && "not a temporary"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 26 09:26:47 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150426/eef51102/attachment.html>


More information about the llvm-bugs mailing list